long_invert(): tiny speed and space optimization.

This commit is contained in:
Tim Peters 2001-09-11 23:24:22 +00:00
parent 9a9471ca1c
commit 40c397dd56
1 changed files with 1 additions and 2 deletions

View File

@ -1812,8 +1812,7 @@ long_invert(PyLongObject *v)
Py_DECREF(w);
if (x == NULL)
return NULL;
if (x->ob_size != 0)
x->ob_size = -(x->ob_size);
x->ob_size = -(x->ob_size);
return (PyObject *)x;
}