summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2019-02-21 10:01:11 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-02-21 10:01:11 (GMT)
commitea6207d593832fe50dbca39e94c138abbd5d266d (patch)
treeb04f7eb3a4d3953eeed3d2be7f34c711650b463d /Objects
parent49fd6dd887df6ea18dbb1a3c0f599239ccd1cb42 (diff)
downloadcpython-ea6207d593832fe50dbca39e94c138abbd5d266d.zip
cpython-ea6207d593832fe50dbca39e94c138abbd5d266d.tar.gz
cpython-ea6207d593832fe50dbca39e94c138abbd5d266d.tar.bz2
bpo-36063: Minor performance tweak in long_divmod(). (GH-11915)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 3c98385..d7b01ce 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);