mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
use vs->locals in DEF instruction
This commit is contained in:
parent
f3a973c8df
commit
9a6089cbcb
@ -540,7 +540,7 @@ static Arg* VM_instruction_handler_DEF(PikaObj* self, VMState* vs, char* data) {
|
|||||||
while (1) {
|
while (1) {
|
||||||
if ((methodPtr[0] == 'B') &&
|
if ((methodPtr[0] == 'B') &&
|
||||||
(methodPtr[1] - '0' == thisBlockDeepth + 1)) {
|
(methodPtr[1] - '0' == thisBlockDeepth + 1)) {
|
||||||
class_defineMethod(self, data, (Method)methodPtr);
|
class_defineMethod(vs->locals, data, (Method)methodPtr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
offset += __gotoNextLine(methodPtr);
|
offset += __gotoNextLine(methodPtr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user