Skip to content

Commit d1aad3f

Browse files
committed
Backed out changeset ea904d4b3634
1 parent 9ea8faf commit d1aad3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6314,12 +6314,12 @@ update_one_slot(PyTypeObject *type, slotdef *p)
63146314
specific = (void *)slot_tp_new;
63156315
}
63166316
else {
6317-
PyTypeObject *staticbase = type->tp_base;
63186317
specific = ((PyTypeObject *)self)->tp_new;
63196318
/* Check that the user does not do anything
63206319
silly and unsafe like object.__new__(dict).
63216320
To do this, we check that the most derived
63226321
base that's not a heap type is this type. */
6322+
PyTypeObject *staticbase = type->tp_base;
63236323
while (staticbase &&
63246324
(staticbase->tp_flags & Py_TPFLAGS_HEAPTYPE))
63256325
staticbase = staticbase->tp_base;

0 commit comments

Comments
 (0)