Commit ea6207d5 authored by Sergey Fedoseev's avatar Sergey Fedoseev Committed by Serhiy Storchaka

bpo-36063: Minor performance tweak in long_divmod(). (GH-11915)

parent 49fd6dd8
...@@ -4103,8 +4103,8 @@ long_divmod(PyObject *a, PyObject *b) ...@@ -4103,8 +4103,8 @@ long_divmod(PyObject *a, PyObject *b)
} }
z = PyTuple_New(2); z = PyTuple_New(2);
if (z != NULL) { if (z != NULL) {
PyTuple_SetItem(z, 0, (PyObject *) div); PyTuple_SET_ITEM(z, 0, (PyObject *) div);
PyTuple_SetItem(z, 1, (PyObject *) mod); PyTuple_SET_ITEM(z, 1, (PyObject *) mod);
} }
else { else {
Py_DECREF(div); Py_DECREF(div);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment