mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
long_invert(): tiny speed and space optimization.
This commit is contained in:
parent
9a9471ca1c
commit
40c397dd56
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue