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:
parent
6a8808011f
commit
c81f5fd326
1 changed files with 2 additions and 4 deletions
6
vm.c
6
vm.c
|
@ -24,12 +24,10 @@
|
||||||
static inline VALUE *
|
static inline VALUE *
|
||||||
VM_EP_LEP(VALUE *ep)
|
VM_EP_LEP(VALUE *ep)
|
||||||
{
|
{
|
||||||
while (1) {
|
while (!VM_EP_LEP_P(ep)) {
|
||||||
if (VM_EP_LEP_P(ep)) {
|
|
||||||
return ep;
|
|
||||||
}
|
|
||||||
ep = VM_EP_PREV_EP(ep);
|
ep = VM_EP_PREV_EP(ep);
|
||||||
}
|
}
|
||||||
|
return ep;
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE *
|
VALUE *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue