mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
fix bind -1
This commit is contained in:
parent
0406dfab78
commit
6736fa7f50
@ -1081,8 +1081,10 @@ PyVar VM::vectorcall(int ARGC, int KWARGC, bool op_call){
|
|||||||
for(int j=0; j<co_nlocals; j++) _base[j] = buffer[j];
|
for(int j=0; j<co_nlocals; j++) _base[j] = buffer[j];
|
||||||
ret = f.call(vm, ArgsView(s_data._sp - co_nlocals, s_data._sp));
|
ret = f.call(vm, ArgsView(s_data._sp - co_nlocals, s_data._sp));
|
||||||
}else{
|
}else{
|
||||||
|
if(f.argc != -1){
|
||||||
if(KWARGC != 0) TypeError("old-style native_func does not accept keyword arguments");
|
if(KWARGC != 0) TypeError("old-style native_func does not accept keyword arguments");
|
||||||
f.check_size(this, args);
|
f.check_size(this, args);
|
||||||
|
}
|
||||||
ret = f.call(this, args);
|
ret = f.call(this, args);
|
||||||
}
|
}
|
||||||
s_data.reset(p0);
|
s_data.reset(p0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user