Adjust VM stack window size; fix #3547

parent ab63ee61
......@@ -378,7 +378,6 @@ main(int argc, char **argv)
int i;
mrb_bool code_block_open = FALSE;
int ai;
unsigned int stack_keep = 0;
/* new interpreter instance */
mrb = mrb_open();
......@@ -549,8 +548,7 @@ done:
result = mrb_vm_run(mrb,
proc,
mrb_top_self(mrb),
stack_keep);
stack_keep = proc->body.irep->nlocals;
cxt->slen);
/* did an exception occur? */
if (mrb->exc) {
p(mrb, mrb_obj_value(mrb->exc), 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment