summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/typeobject.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 7a82393..974a402 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2897,10 +2897,8 @@ same_slots_added(PyTypeObject *a, PyTypeObject *b)
Py_ssize_t size;
PyObject *slots_a, *slots_b;
- if (base != b->tp_base)
- return 0;
- if (equiv_structs(a, base) && equiv_structs(b, base))
- return 1;
+ assert(base == b->tp_base);
+ assert(equiv_structs(a, base) && equiv_structs(b, base));
size = base->tp_basicsize;
if (a->tp_dictoffset == size && b->tp_dictoffset == size)
size += sizeof(PyObject *);