mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 12:30:19 +00:00
fix a bug of EVAL
This commit is contained in:
parent
4c27b5210b
commit
21a0314b1a
8
src/vm.h
8
src/vm.h
@ -393,10 +393,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(frame->code->src->mode == EVAL_MODE) {
|
if(frame->code->src->mode == EVAL_MODE) {
|
||||||
if(frame->stackSize() != 1) {
|
if(frame->stackSize() != 1) systemError("stack size is not 1 in EVAL_MODE");
|
||||||
systemError("stack size is not 1 in EVAL_MODE");
|
PyVar ret = frame->popValue(this);
|
||||||
}
|
callstack.pop();
|
||||||
return frame->popValue(this);
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(frame->stackSize() != 0) systemError("stack not empty in EXEC_MODE");
|
if(frame->stackSize() != 0) systemError("stack not empty in EXEC_MODE");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user