fix a bug

This commit is contained in:
blueloveTH 2024-03-24 23:20:23 +08:00
parent a79e2cd3b8
commit 636944632d

View File

@ -967,8 +967,8 @@ __FAST_CALL:
// __init__
PyObject* self;
callable = get_unbound_method(obj, __init__, &self, false);
callable_t = _tp(callable);
if (self != PY_NULL) {
if (callable != nullptr) {
callable_t = _tp(callable);
// replace `NULL` with `self`
p1[-(ARGC + 2)] = callable;
p1[-(ARGC + 1)] = self;