summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c6
1 files changed, 2 insertions, 4 deletions
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 *