From: Tim Peters Date: Tue, 11 Sep 2001 23:24:22 +0000 (+0000) Subject: long_invert(): tiny speed and space optimization. X-Git-Tag: v2.2.1c1~1832 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40c397dd560b8394b1b97b30ab2c9946b2a32584;p=python long_invert(): tiny speed and space optimization. --- diff --git a/Objects/longobject.c b/Objects/longobject.c index 7a709033fb..38ef89c962 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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; }