Get an irep symbol if it's OP_GETSV or OP_SETSV

This commit is contained in:
dearblue
2020-05-10 20:15:55 +09:00
parent 7826af38ac
commit bd60ad98eb
+2 -2
View File
@@ -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;
}