mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
a tiny change
This commit is contained in:
parent
7de39b0cda
commit
805a7ca01f
@ -167,7 +167,7 @@ PyObject* c_function_wrapper(VM* vm, ArgsView args) {
|
||||
CVM* cvm = (CVM*) vm;
|
||||
|
||||
//setup c stack
|
||||
ValueStackImpl<PKPY_STACK_SIZE> local_stack = ValueStackImpl<PKPY_STACK_SIZE>();
|
||||
ValueStackImpl<PKPY_STACK_SIZE> local_stack;
|
||||
|
||||
for (int i = 0; i < args.size(); i++)
|
||||
local_stack.push(args[i]);
|
||||
@ -185,7 +185,7 @@ PyObject* c_function_wrapper(VM* vm, ArgsView args) {
|
||||
if (retc == 1)
|
||||
ret = local_stack.top();
|
||||
else if (retc > 1) {
|
||||
Tuple t = Tuple(retc);
|
||||
Tuple t(retc);
|
||||
|
||||
for (int i = 0; i < retc; i++) {
|
||||
int stack_index = (local_stack.size() - retc) + i;
|
||||
|
@ -22,4 +22,5 @@ echo "cleaning up"
|
||||
rm pocketpy_c.o
|
||||
rm test.o
|
||||
rm binding_test_scratch
|
||||
rm c_binding_test
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user