Skip to content
Permalink
Browse files
Revert "Adjust VM stack window size; fix #3547"
This reverts commit 6dabb33.
  • Loading branch information
matz committed Apr 3, 2017
1 parent 6dabb33 commit 12f6496ff8919cd29b0c1850d15170d3bd7e6429
Showing 1 changed file with 3 additions and 1 deletion.
@@ -378,6 +378,7 @@ 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();
@@ -548,7 +549,8 @@ main(int argc, char **argv)
result = mrb_vm_run(mrb,
proc,
mrb_top_self(mrb),
cxt->slen);
stack_keep);
stack_keep = proc->body.irep->nlocals;
/* did an exception occur? */
if (mrb->exc) {
p(mrb, mrb_obj_value(mrb->exc), 0);

0 comments on commit 12f6496

Please sign in to comment.