Revert "some fix about emplace"

This reverts commit 3d5b50a527b5992b53708676aee4738effba7707.
This commit is contained in:
blueloveTH 2024-03-16 15:20:41 +08:00
parent 3d5b50a527
commit 638ce2699a
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ public:
template<typename ...Args>
PyObject* _exec(Args&&... args){
callstack.emplace(Frame(&s_data, s_data._sp, std::forward<Args>(args)...));
callstack.emplace(&s_data, s_data._sp, std::forward<Args>(args)...);
return _run_top_frame();
}

View File

@ -941,7 +941,7 @@ PyObject* VM::vectorcall(int ARGC, int KWARGC, bool op_call){
for(int j=0; j<co_nlocals; j++) _base[j] = buffer[j];
__FAST_CALL:
callstack.emplace(Frame(&s_data, p0, co, fn._module, callable, FastLocals(co, args.begin())));
callstack.emplace(&s_data, p0, co, fn._module, callable, FastLocals(co, args.begin()));
if(op_call) return PY_OP_CALL;
return _run_top_frame();
/*****************_py_call*****************/