From ea6207d593832fe50dbca39e94c138abbd5d266d Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Thu, 21 Feb 2019 15:01:11 +0500 Subject: [PATCH] bpo-36063: Minor performance tweak in long_divmod(). (GH-11915) --- Objects/longobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 3c98385f539..d7b01cebac8 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);