From c158e631d1062540253f8d351eb5fbd05030eb08 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 14 Oct 2023 00:37:16 +0800 Subject: [PATCH] ... --- src/vm.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/vm.cpp b/src/vm.cpp index da7205c0..ca09e892 100644 --- a/src/vm.cpp +++ b/src/vm.cpp @@ -812,6 +812,7 @@ PyObject* VM::vectorcall(int ARGC, int KWARGC, bool op_call){ ArgsView args(p1 - ARGC - int(method_call), p1); ArgsView kwargs(p1, s_data._sp); + PyObject** _base = args.begin(); PyObject* buffer[PK_MAX_CO_VARNAMES]; if(is_non_tagged_type(callable, tp_native_func)){ @@ -821,8 +822,8 @@ PyObject* VM::vectorcall(int ARGC, int KWARGC, bool op_call){ int co_nlocals = f.decl->code->varnames.size(); _prepare_py_call(buffer, args, kwargs, f.decl); // copy buffer back to stack - s_data.reset(args.begin()); - for(int j=0; jcode.get(); int co_nlocals = co->varnames.size(); - - PyObject** _base = args.begin(); - if(decl->is_simple){ if(args.size() != decl->args.size()){ TypeError(fmt(