Permalink
Browse files

Adjust VM stack window size; fix #3547

  • Loading branch information...
matz committed Apr 3, 2017
1 parent ab63ee6 commit 6dabb33635a149fc571cf285352ea4f89bdc52f0
Showing with 1 addition and 3 deletions.
  1. +1 −3 mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
@@ -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 @@ main(int argc, char **argv)
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);

0 comments on commit 6dabb33

Please sign in to comment.