Skip to content

Commit adfffc7

Browse files
Fix the C function signature for _collections._tuplegetter.__reduce__. (GH-12180)
Correctly fixes bpo-36197.
1 parent b35be4b commit adfffc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Modules/_collectionsmodule.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ tuplegetter_dealloc(_tuplegetterobject *self)
24412441
}
24422442

24432443
static PyObject*
2444-
tuplegetter_reduce(_tuplegetterobject *self)
2444+
tuplegetter_reduce(_tuplegetterobject *self, PyObject *Py_UNUSED(ignored))
24452445
{
24462446
return Py_BuildValue("(O(nO))", (PyObject*) Py_TYPE(self), self->index, self->doc);
24472447
}
@@ -2453,7 +2453,7 @@ static PyMemberDef tuplegetter_members[] = {
24532453
};
24542454

24552455
static PyMethodDef tuplegetter_methods[] = {
2456-
{"__reduce__", (PyCFunction)(void(*)(void))tuplegetter_reduce, METH_NOARGS, NULL},
2456+
{"__reduce__", (PyCFunction)tuplegetter_reduce, METH_NOARGS, NULL},
24572457
{NULL},
24582458
};
24592459

0 commit comments

Comments
 (0)