mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
restore arena index after funcall
This commit is contained in:
@@ -219,7 +219,9 @@ mrb_funcall_with_block(mrb_state *mrb, mrb_value self, const char *name, int arg
|
||||
mrb->stack[argc+1] = blk;
|
||||
|
||||
if (MRB_PROC_CFUNC_P(p)) {
|
||||
int ai = mrb->arena_idx;
|
||||
val = p->body.func(mrb, self);
|
||||
mrb->arena_idx = ai;
|
||||
mrb->stack = mrb->stbase + ci->stackidx;
|
||||
cipop(mrb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user