Commit 22ff664f authored by Mark Dickinson's avatar Mark Dickinson

Issue #8659: Remove redundant ABS calls. Thanks Daniel Stutzbach.

parent 18e4dd74
......@@ -2354,9 +2354,6 @@ long_compare(PyLongObject *a, PyLongObject *b)
Py_ssize_t sign;
if (Py_SIZE(a) != Py_SIZE(b)) {
if (ABS(Py_SIZE(a)) == 0 && ABS(Py_SIZE(b)) == 0)
sign = 0;
else
sign = Py_SIZE(a) - Py_SIZE(b);
}
else {
......@@ -3606,7 +3603,7 @@ long_abs(PyLongObject *v)
static int
long_nonzero(PyLongObject *v)
{
return ABS(Py_SIZE(v)) != 0;
return Py_SIZE(v) != 0;
}
static PyObject *
......
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