mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-111178: fix some USAN failures - mismatched function pointers (GH-123004)
This commit is contained in:
parent
0e21cc6cf8
commit
702c4a2473
3 changed files with 9 additions and 7 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue