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

This commit is contained in:
Sergey Fedoseev 2019-02-21 15:01:11 +05:00 committed by Serhiy Storchaka
parent 49fd6dd887
commit ea6207d593
1 changed files with 2 additions and 2 deletions

View File

@ -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);