mirror of https://github.com/python/cpython
long_invert(): tiny speed and space optimization.
This commit is contained in:
parent
9a9471ca1c
commit
40c397dd56
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue