summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-08-29 11:06:34 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-08-29 11:06:34 +0900
commit8976f47e0a0399b4332cfca6e8b9de8345bcf1af (patch)
treeeca6e490b2a088be8210194503d589165780d0b5
parentc08224983867481e49a6ba23722c6bbe90107a9b (diff)
downloadmruby-8976f47e0a0399b4332cfca6e8b9de8345bcf1af.tar.gz
mruby-8976f47e0a0399b4332cfca6e8b9de8345bcf1af.zip
Need to update `ci` after `callinfo` stack reallocation; fix #3796
-rw-r--r--src/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm.c b/src/vm.c
index 5facaed25..498b9ad8a 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1959,8 +1959,8 @@ RETRY_TRY_BLOCK:
mrb->c = c->prev;
c->prev = NULL;
- ci = mrb->c->ci;
}
+ ci = mrb->c->ci;
if (ci->acc < 0) {
mrb_gc_arena_restore(mrb, ai);
mrb->c->vmexec = FALSE;