diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-08-03 00:40:36 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-08-03 00:40:36 +0900 |
| commit | 5aff0d3f25f28bee364256d40e909d39a7cae679 (patch) | |
| tree | 53f79ea84e92c478829675311882123fd2a4c669 | |
| parent | 6f6e18ef825fbae10410c4c84460773e745ae056 (diff) | |
| download | mruby-5aff0d3f25f28bee364256d40e909d39a7cae679.tar.gz mruby-5aff0d3f25f28bee364256d40e909d39a7cae679.zip | |
update regs after cfunc call
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -867,7 +867,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) mrb->arena_idx = ai; if (mrb->exc) goto L_RAISE; /* pop stackpos */ - mrb->stack = mrb->stbase + ci->stackidx; + regs = mrb->stack = mrb->stbase + ci->stackidx; cipop(mrb); NEXT; } @@ -1563,7 +1563,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) mrb->arena_idx = ai; if (mrb->exc) goto L_RAISE; /* pop stackpos */ - mrb->stack = mrb->stbase + ci->stackidx; + regs = mrb->stack = mrb->stbase + ci->stackidx; cipop(mrb); NEXT; } |
