aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 74ca28c5c7..afdc5be931 100644
--- a/vm.c
+++ b/vm.c
@@ -998,7 +998,7 @@ invoke_iseq_block_from_c(rb_thread_t *th, const struct rb_captured_block *captur
th->passed_bmethod_me = NULL;
CHECK_VM_STACK_OVERFLOW(cfp, argc);
- cfp->sp = sp + i;
+ cfp->sp = sp + argc;
for (i=0; i<argc; i++) {
sp[i] = argv[i];
}