From bd60ad98eb3ed48fc7bbe52ad5b879189c582bbd Mon Sep 17 00:00:00 2001 From: dearblue Date: Sun, 10 May 2020 20:15:55 +0900 Subject: Get an irep symbol if it's `OP_GETSV` or `OP_SETSV` --- src/vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vm.c') diff --git a/src/vm.c b/src/vm.c index 26da5831e..7bb153910 100644 --- a/src/vm.c +++ b/src/vm.c @@ -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; } -- cgit v1.2.3