Commit 3af40f42 authored by Jelmer Vernooij's avatar Jelmer Vernooij

Properly use Py_EQ.

parent 51355061
......@@ -149,7 +149,7 @@ static inline int
compare_lines(struct line *a, struct line *b)
{
return ((a->hash != b->hash)
|| PyObject_RichCompareBool(a->data, b->data, Py_LT));
|| PyObject_RichCompareBool(a->data, b->data, Py_EQ) == 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment