diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-20 17:45:10 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-20 17:45:10 +0900 |
| commit | a42b676ae928249d6a6f6a3a370d84b29bb2a613 (patch) | |
| tree | 75c8c5ed14eae8c839c660fbf95f0d7bbdb8acb5 /src/vm.c | |
| parent | 5774a7a38b065ae34b65f5886f06d271db9914aa (diff) | |
| download | mruby-a42b676ae928249d6a6f6a3a370d84b29bb2a613.tar.gz mruby-a42b676ae928249d6a6f6a3a370d84b29bb2a613.zip | |
vm.c: fix a half-baked implementation of `OP_SETIDX`; ref #5608
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1383,7 +1383,6 @@ RETRY_TRY_BLOCK: break; default: getidx_fallback: - c = 1; mid = MRB_OPSYM(aref); goto L_SEND_SYM; } @@ -1393,7 +1392,8 @@ RETRY_TRY_BLOCK: CASE(OP_SETIDX, B) { c = 2; mid = MRB_OPSYM(aset); - goto L_SEND_SYM; + SET_NIL_VALUE(regs[a+3]); + goto L_SENDB_SYM; } CASE(OP_GETCONST, BB) { |
