mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
fix a bug
This commit is contained in:
parent
a79e2cd3b8
commit
636944632d
@ -967,8 +967,8 @@ __FAST_CALL:
|
||||
// __init__
|
||||
PyObject* self;
|
||||
callable = get_unbound_method(obj, __init__, &self, false);
|
||||
if (callable != nullptr) {
|
||||
callable_t = _tp(callable);
|
||||
if (self != PY_NULL) {
|
||||
// replace `NULL` with `self`
|
||||
p1[-(ARGC + 2)] = callable;
|
||||
p1[-(ARGC + 1)] = self;
|
||||
|
Loading…
x
Reference in New Issue
Block a user