diff options
| author | dearblue <[email protected]> | 2020-05-10 20:15:55 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2020-05-10 20:15:55 +0900 |
| commit | bd60ad98eb3ed48fc7bbe52ad5b879189c582bbd (patch) | |
| tree | 86177ffdb44fa58bd157f8444825b27aaa04f750 /src/vm.c | |
| parent | 7826af38acaca62210acfb5c64f62a8c5a97ed48 (diff) | |
| download | mruby-bd60ad98eb3ed48fc7bbe52ad5b879189c582bbd.tar.gz mruby-bd60ad98eb3ed48fc7bbe52ad5b879189c582bbd.zip | |
Get an irep symbol if it's `OP_GETSV` or `OP_SETSV`
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1089,13 +1089,13 @@ RETRY_TRY_BLOCK: } CASE(OP_GETSV, BB) { - mrb_value val = mrb_vm_special_get(mrb, b); + mrb_value val = mrb_vm_special_get(mrb, syms[b]); regs[a] = val; NEXT; } CASE(OP_SETSV, BB) { - mrb_vm_special_set(mrb, b, regs[a]); + mrb_vm_special_set(mrb, syms[b], regs[a]); NEXT; } |
