From: Sergey Fedoseev Date: Thu, 21 Feb 2019 10:01:11 +0000 (+0500) Subject: bpo-36063: Minor performance tweak in long_divmod(). (GH-11915) X-Git-Tag: v3.8.0a2~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea6207d593832fe50dbca39e94c138abbd5d266d;p=thirdparty%2FPython%2Fcpython.git bpo-36063: Minor performance tweak in long_divmod(). (GH-11915) --- diff --git a/Objects/longobject.c b/Objects/longobject.c index 3c98385f5396..d7b01cebac85 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -4103,8 +4103,8 @@ long_divmod(PyObject *a, PyObject *b) } z = PyTuple_New(2); if (z != NULL) { - PyTuple_SetItem(z, 0, (PyObject *) div); - PyTuple_SetItem(z, 1, (PyObject *) mod); + PyTuple_SET_ITEM(z, 0, (PyObject *) div); + PyTuple_SET_ITEM(z, 1, (PyObject *) mod); } else { Py_DECREF(div);