Skip to content

Commit 201a468

Browse files
committed
Bugfix -- assertion in unsafe_long_compare was phrased incorrectly.
1 parent 3820cdb commit 201a468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/listobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,8 +1134,8 @@ unsafe_long_compare(PyObject *v, PyObject *w, CompareFuncs compare_funcs)
11341134
#ifdef Py_DEBUG
11351135
assert(v->ob_type == w->ob_type &&
11361136
v->ob_type == &PyLong_Type &&
1137-
Py_ABS(Py_SIZE(v)) == Py_ABS(Py_SIZE(w)) &&
1138-
Py_ABS(Py_SIZE(v)) <= 1);
1137+
Py_ABS(Py_SIZE(v)) <= 1 &&
1138+
Py_ABS(Py_SIZE(w)) <= 1);
11391139
#endif
11401140

11411141
PyLongObject *vl, *wl;

0 commit comments

Comments
 (0)