summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 6b31bab995..2b6f7849fd 100644
--- a/eval.c
+++ b/eval.c
@@ -1127,7 +1127,7 @@ previous_frame(rb_thread_t *th)
{
rb_control_frame_t *prev_cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(th->ec.cfp);
/* check if prev_cfp can be accessible */
- if ((void *)(th->ec.stack + th->ec.stack_size) == (void *)(prev_cfp)) {
+ if ((void *)(th->ec.vm_stack + th->ec.vm_stack_size) == (void *)(prev_cfp)) {
return 0;
}
return prev_cfp;