diff options
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r-- | Objects/typeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index fbe3d165a6..3c766e9230 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -8864,7 +8864,7 @@ super_init_without_args(PyFrameObject *f, PyCodeObject *co, PyObject *firstarg = f->f_localsptr[0]; // The first argument might be a cell. - if (firstarg != NULL && (co->co_localspluskinds[0] & CO_FAST_CELL)) { + if (firstarg != NULL && (_PyLocals_GetKind(co->co_localspluskinds, 0) & CO_FAST_CELL)) { // "firstarg" is a cell here unless (very unlikely) super() // was called from the C-API before the first MAKE_CELL op. if (f->f_lasti >= 0) { @@ -8883,7 +8883,7 @@ super_init_without_args(PyFrameObject *f, PyCodeObject *co, PyTypeObject *type = NULL; int i = co->co_nlocals + co->co_nplaincellvars; for (; i < co->co_nlocalsplus; i++) { - assert((co->co_localspluskinds[i] & CO_FAST_FREE) != 0); + assert((_PyLocals_GetKind(co->co_localspluskinds, i) & CO_FAST_FREE) != 0); PyObject *name = PyTuple_GET_ITEM(co->co_localsplusnames, i); assert(PyUnicode_Check(name)); if (_PyUnicode_EqualToASCIIId(name, &PyId___class__)) { |