mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
some fix about emplace
This commit is contained in:
parent
fffcd7425d
commit
3d5b50a527
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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*****************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user