From 48fe2c38d9cac0219774f22859f8e8693ff145a4 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Mon, 30 Jul 2018 17:44:20 +0500 Subject: [PATCH] Replace PyTuple_SetItem() with macro version in long_divmod(). --- Objects/longobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 399d3542709901..5017c194fb778b 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);