summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 4d4ac4dc02..121a3ca083 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -257,7 +257,7 @@ stack_check(rb_execution_context_t *ec)
rb_thread_t *th = rb_ec_thread_ptr(ec);
if (!rb_thread_raised_p(th, RAISED_STACKOVERFLOW) &&
- rb_threadptr_stack_check(th)) {
+ rb_ec_stack_check(ec)) {
rb_thread_raised_set(th, RAISED_STACKOVERFLOW);
rb_ec_stack_overflow(th->ec, FALSE);
}