Update vm.h

This commit is contained in:
blueloveTH 2023-01-11 18:13:10 +08:00
parent 3a0c495e78
commit 01c7ab2af3

View File

@ -143,7 +143,7 @@ protected:
if(expr == None) break;
*_stdout << PyStr_AS_C(asRepr(expr)) << '\n';
} break;
case OP_POP_TOP: frame->pop_value(this); break;
case OP_POP_TOP: frame->pop(); break;
case OP_BINARY_OP:
{
pkpy::ArgList args(2);
@ -576,7 +576,7 @@ public:
throw RuntimeError("RecursionError", "maximum recursion depth exceeded", _cleanErrorAndGetSnapshots());
}
Frame* frame = new Frame(code, _module, std::move(locals));
callstack.emplace_back(std::unique_ptr<Frame>(frame));
callstack.emplace_back(frame);
return frame;
}