Update internal.c

This commit is contained in:
blueloveTH 2025-07-17 19:56:28 +08:00
parent bc64efe57a
commit 7d85da5ad3

View File

@ -231,8 +231,8 @@ bool pk_loadmethod(py_StackRef self, py_Name name) {
if(ti->getunboundmethod) {
bool ok = ti->getunboundmethod(self, name);
assert(py_retval()->type == tp_nativefunc || py_retval()->type == tp_function);
if(ok) {
assert(py_retval()->type == tp_nativefunc || py_retval()->type == tp_function);
self[0] = *py_retval();
self[1] = self_bak;
return true;