some fix about emplace

This commit is contained in:
blueloveTH 2024-03-16 15:16:11 +08:00
parent fffcd7425d
commit 3d5b50a527
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(&s_data, s_data._sp, std::forward<Args>(args)...);
callstack.emplace(Frame(&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(&s_data, p0, co, fn._module, callable, FastLocals(co, args.begin()));
callstack.emplace(Frame(&s_data, p0, co, fn._module, callable, FastLocals(co, args.begin())));
if(op_call) return PY_OP_CALL;
return _run_top_frame();
/*****************_py_call*****************/