]> granicus.if.org Git - python/commitdiff
correct assertion
authorBenjamin Peterson <benjamin@python.org>
Mon, 17 Jan 2011 19:44:46 +0000 (19:44 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 17 Jan 2011 19:44:46 +0000 (19:44 +0000)
Objects/typeobject.c

index 325b8254b5d555b2542e3b624a1ba81b6a342a17..03d9134d69c9c066b9e52f8aac598861d3a5b3f5 100644 (file)
@@ -2946,7 +2946,7 @@ same_slots_added(PyTypeObject *a, PyTypeObject *b)
     PyObject *slots_a, *slots_b;
 
     assert(base == b->tp_base);
-    assert(equiv_structs(a, base) && equiv_structs(b, 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 *);