diff --git a/vm.c b/vm.c index b4132cda8b..5636f80752 100644 --- a/vm.c +++ b/vm.c @@ -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 *