mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
fix format.
This commit is contained in:
parent
cc4dd34c86
commit
71432a4054
@ -528,7 +528,7 @@ PyVar VM::__py_exec_internal(const CodeObject_& code, PyVar globals, PyVar local
|
||||
|
||||
auto _lock = heap.gc_scope_lock(); // for safety
|
||||
|
||||
PyObject* globals_obj = nullptr;
|
||||
PyVar globals_obj = nullptr;
|
||||
Dict* globals_dict = nullptr;
|
||||
|
||||
NameDict_ locals_closure = nullptr;
|
||||
@ -562,7 +562,7 @@ PyVar VM::__py_exec_internal(const CodeObject_& code, PyVar globals, PyVar local
|
||||
locals_dict->apply([&](PyVar k, PyVar v){
|
||||
locals_closure->set(CAST(Str&, k), v);
|
||||
});
|
||||
PyObject* _callable = VAR(Function(__dynamic_func_decl, globals_obj, nullptr, locals_closure));
|
||||
PyVar _callable = VAR(Function(__dynamic_func_decl, globals_obj, nullptr, locals_closure));
|
||||
retval = vm->_exec(code.get(), globals_obj, _callable, vm->s_data._sp);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user