diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-25 13:48:54 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-25 13:48:54 +0900 |
| commit | ea9bb1e38ffeec1ca3487031b5957d1f48c3f5ad (patch) | |
| tree | 9849022f14e8fb869ffaca890d8003514f24ade2 | |
| parent | d9227aa41d8e626e7ff706f2d8cb94fea08658a9 (diff) | |
| download | mruby-ea9bb1e38ffeec1ca3487031b5957d1f48c3f5ad.tar.gz mruby-ea9bb1e38ffeec1ca3487031b5957d1f48c3f5ad.zip | |
adjust stack position before exiting mrb_run(); close #193
| -rw-r--r-- | src/vm.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -980,7 +980,10 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) cipop(mrb); ci = mrb->ci; if (ci == mrb->cibase) { - if (ci->ridx == 0) goto L_STOP; + if (ci->ridx == 0) { + mrb->stack = mrb->stbase; + goto L_STOP; + } break; } } |
