Skip to content

Commit

Permalink
bpo-36063: Minor performance tweak in long_divmod(). (GH-11915)
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-sigurd authored and serhiy-storchaka committed Feb 21, 2019
1 parent 49fd6dd commit ea6207d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Objects/longobject.c
Expand Up @@ -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);
Expand Down

0 comments on commit ea6207d

Please sign in to comment.