[Python-checkins] r88066 - python/branches/py3k/Objects/typeobject.c

benjamin.peterson python-checkins at python.org
Mon Jan 17 20:44:46 CET 2011


Author: benjamin.peterson
Date: Mon Jan 17 20:44:46 2011
New Revision: 88066

Log:
correct assertion

Modified:
   python/branches/py3k/Objects/typeobject.c

Modified: python/branches/py3k/Objects/typeobject.c
==============================================================================
--- python/branches/py3k/Objects/typeobject.c	(original)
+++ python/branches/py3k/Objects/typeobject.c	Mon Jan 17 20:44:46 2011
@@ -2946,7 +2946,7 @@
     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 *);


More information about the Python-checkins mailing list