Commit 9424de6a authored by Tim Peters's avatar Tim Peters

long_invert(): tiny speed and space optimization.

parent 7b684427
...@@ -1812,8 +1812,7 @@ long_invert(PyLongObject *v) ...@@ -1812,8 +1812,7 @@ long_invert(PyLongObject *v)
Py_DECREF(w); Py_DECREF(w);
if (x == NULL) if (x == NULL)
return NULL; return NULL;
if (x->ob_size != 0) x->ob_size = -(x->ob_size);
x->ob_size = -(x->ob_size);
return (PyObject *)x; return (PyObject *)x;
} }
......
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