diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-21 00:49:40 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-21 00:51:29 +0900 |
| commit | 9bd2a3b5d9f56d838a25e2038f948afdc4adccac (patch) | |
| tree | 1f146b30d6946af54e4502ce46707476b06f4bab | |
| parent | 346f154ece3bd68b63dfee4b4c4d9a20c0eee063 (diff) | |
| download | mruby-9bd2a3b5d9f56d838a25e2038f948afdc4adccac.tar.gz mruby-9bd2a3b5d9f56d838a25e2038f948afdc4adccac.zip | |
Fixed a top-level local variable bug in `mirb`.
`OP_STOP` returned a wrong value.
| -rw-r--r-- | src/vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2056,6 +2056,7 @@ RETRY_TRY_BLOCK: struct mrb_context *c; if (!mrb->c->prev) { /* toplevel return */ + regs[irep->nlocals] = v; goto L_STOP; } if (mrb->c->prev->ci == mrb->c->prev->cibase) { |
