bpo-36063: Minor performance tweak in long_divmod(). (GH-11915)
This commit is contained in:
parent
49fd6dd887
commit
ea6207d593
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue