]> granicus.if.org Git - python/commitdiff
type_subclasses(): debug build was broken due to typo in new assert().
authorTim Peters <tim.peters@gmail.com>
Mon, 8 Oct 2001 16:49:26 +0000 (16:49 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 8 Oct 2001 16:49:26 +0000 (16:49 +0000)
Objects/typeobject.c

index c0685484f9c577b305cd9080c04bf490ea1a2bad..34a20e14c00aa7e8fea0bdaae856094ae9634839 100644 (file)
@@ -1147,7 +1147,7 @@ type_subclasses(PyTypeObject *type, PyObject *args_ignored)
        n = PyList_GET_SIZE(raw);
        for (i = 0; i < n; i++) {
                ref = PyList_GET_ITEM(raw, i);
-               assert(PyWeakref_CheckRef(res));
+               assert(PyWeakref_CheckRef(ref));
                ref = PyWeakref_GET_OBJECT(ref);
                if (ref != Py_None) {
                        if (PyList_Append(list, ref) < 0) {