gh-111178: fix some USAN failures - mismatched function pointers (GH-123004)

This commit is contained in:
Bénédikt Tran 2024-09-27 23:51:50 +02:00 committed by GitHub
parent 0e21cc6cf8
commit 702c4a2473
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 7 deletions

View file

@ -999,8 +999,9 @@ tupleiter_traverse(_PyTupleIterObject *it, visitproc visit, void *arg)
}
static PyObject *
tupleiter_next(_PyTupleIterObject *it)
tupleiter_next(PyObject *obj)
{
_PyTupleIterObject *it = (_PyTupleIterObject *)obj;
PyTupleObject *seq;
PyObject *item;
@ -1101,7 +1102,7 @@ PyTypeObject PyTupleIter_Type = {
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
PyObject_SelfIter, /* tp_iter */
(iternextfunc)tupleiter_next, /* tp_iternext */
tupleiter_next, /* tp_iternext */
tupleiter_methods, /* tp_methods */
0,
};