1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm.c (VM_EP_LEP): simplify infinite loop.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-04-29 08:44:16 +00:00
parent 6a8808011f
commit c81f5fd326

6
vm.c
View file

@ -24,12 +24,10 @@
static inline VALUE *
VM_EP_LEP(VALUE *ep)
{
while (1) {
if (VM_EP_LEP_P(ep)) {
return ep;
}
while (!VM_EP_LEP_P(ep)) {
ep = VM_EP_PREV_EP(ep);
}
return ep;
}
VALUE *