summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index c068548..34a20e1 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -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) {