Skip to content

Commit 3820cdb

Browse files
committed
Bugfix -- gcc ignored the error, but clang caught it!
1 parent 1567801 commit 3820cdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/listobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ unsafe_long_compare(PyObject *v, PyObject *w, CompareFuncs compare_funcs)
11331133
/* Modified from Objects/longobject.c:long_compare, assuming: */
11341134
#ifdef Py_DEBUG
11351135
assert(v->ob_type == w->ob_type &&
1136-
v->ob_type == PyLong_Type &&
1136+
v->ob_type == &PyLong_Type &&
11371137
Py_ABS(Py_SIZE(v)) == Py_ABS(Py_SIZE(w)) &&
11381138
Py_ABS(Py_SIZE(v)) <= 1);
11391139
#endif

0 commit comments

Comments
 (0)