diff --git a/Objects/longobject.c b/Objects/longobject.c index 3c98385f539..d7b01cebac8 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -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);