gh-111178: Fix function signatures for test_iter (#131456)

This commit is contained in:
Victor Stinner 2025-03-19 14:42:51 +01:00 committed by GitHub
parent 8ad4646c67
commit f5e4c2955b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 12 deletions

View file

@ -210,8 +210,9 @@ calliter_dealloc(PyObject *op)
}
static int
calliter_traverse(calliterobject *it, visitproc visit, void *arg)
calliter_traverse(PyObject *op, visitproc visit, void *arg)
{
calliterobject *it = (calliterobject*)op;
Py_VISIT(it->it_callable);
Py_VISIT(it->it_sentinel);
return 0;
@ -294,7 +295,7 @@ PyTypeObject PyCallIter_Type = {
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, /* tp_flags */
0, /* tp_doc */
(traverseproc)calliter_traverse, /* tp_traverse */
calliter_traverse, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */