mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update internal.c
This commit is contained in:
parent
bc64efe57a
commit
7d85da5ad3
@ -231,8 +231,8 @@ bool pk_loadmethod(py_StackRef self, py_Name name) {
|
|||||||
|
|
||||||
if(ti->getunboundmethod) {
|
if(ti->getunboundmethod) {
|
||||||
bool ok = ti->getunboundmethod(self, name);
|
bool ok = ti->getunboundmethod(self, name);
|
||||||
assert(py_retval()->type == tp_nativefunc || py_retval()->type == tp_function);
|
|
||||||
if(ok) {
|
if(ok) {
|
||||||
|
assert(py_retval()->type == tp_nativefunc || py_retval()->type == tp_function);
|
||||||
self[0] = *py_retval();
|
self[0] = *py_retval();
|
||||||
self[1] = self_bak;
|
self[1] = self_bak;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user