diff --git a/Objects/longobject.c b/Objects/longobject.c index 7a709033fb1..38ef89c9628 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; }