Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea6207d

Browse files
sir-sigurdserhiy-storchaka
authored andcommitted
bpo-36063: Minor performance tweak in long_divmod(). (GH-11915)
1 parent 49fd6dd commit ea6207d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/longobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4103,8 +4103,8 @@ long_divmod(PyObject *a, PyObject *b)
41034103
}
41044104
z = PyTuple_New(2);
41054105
if (z != NULL) {
4106-
PyTuple_SetItem(z, 0, (PyObject *) div);
4107-
PyTuple_SetItem(z, 1, (PyObject *) mod);
4106+
PyTuple_SET_ITEM(z, 0, (PyObject *) div);
4107+
PyTuple_SET_ITEM(z, 1, (PyObject *) mod);
41084108
}
41094109
else {
41104110
Py_DECREF(div);

0 commit comments

Comments
 (0)