commit | ea6207d593832fe50dbca39e94c138abbd5d266d | [log] [tgz] |
---|---|---|
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | Thu Feb 21 15:01:11 2019 +0500 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Feb 21 12:01:11 2019 +0200 |
tree | b04f7eb3a4d3953eeed3d2be7f34c711650b463d | |
parent | 49fd6dd887df6ea18dbb1a3c0f599239ccd1cb42 [diff] |
bpo-36063: Minor performance tweak in long_divmod(). (GH-11915)
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 @@ } 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);