diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-03 19:12:13 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-03 19:12:13 +0900 |
| commit | 6dabb33635a149fc571cf285352ea4f89bdc52f0 (patch) | |
| tree | 46b6c9b3e4b5ff25486d5ced3622d98dd87baf03 /mrbgems/mruby-bin-mirb | |
| parent | ab63ee61ca2c130907d68d656ff7486ec2d29db8 (diff) | |
| download | mruby-6dabb33635a149fc571cf285352ea4f89bdc52f0.tar.gz mruby-6dabb33635a149fc571cf285352ea4f89bdc52f0.zip | |
Adjust VM stack window size; fix #3547
Diffstat (limited to 'mrbgems/mruby-bin-mirb')
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index d633a09b2..2fb55c58c 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/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 @@ 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); |
