Skip to content

Commit 9045fde

Browse files
committed
Fix assert
1 parent 98c6edd commit 9045fde

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Python/ceval.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4443,8 +4443,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
44434443
int dictoffset = *(int16_t *)&cache0->index;
44444444
PyDictObject **dictptr = (PyDictObject**)(((char *)self)+dictoffset);
44454445
assert(
4446-
((PyObject **)dictptr == _PyObject_ManagedDictPointer(self) && dictoffset < 0)
4447-
||
4446+
dictoffset == MANAGED_DICT_OFFSET ||
44484447
(dictoffset == self_cls->tp_dictoffset && dictoffset > 0)
44494448
);
44504449
PyDictObject *dict = *dictptr;

0 commit comments

Comments
 (0)