mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Squashed new compiler wngs about trying to compare pointers to
functions with different signatures.
This commit is contained in:
parent
da4ec5a7bc
commit
2af713c2f7
2 changed files with 2 additions and 2 deletions
|
@ -2375,7 +2375,7 @@ list_iter(PyObject *seq)
|
|||
PyErr_BadInternalCall();
|
||||
return NULL;
|
||||
}
|
||||
if (seq->ob_type->tp_as_sequence->sq_item != list_item)
|
||||
if (seq->ob_type->tp_as_sequence->sq_item != (intargfunc)list_item)
|
||||
return PySeqIter_New(seq);
|
||||
it = PyObject_GC_New(listiterobject, &PyListIter_Type);
|
||||
if (it == NULL)
|
||||
|
|
|
@ -753,7 +753,7 @@ tuple_iter(PyObject *seq)
|
|||
PyErr_BadInternalCall();
|
||||
return NULL;
|
||||
}
|
||||
if (seq->ob_type->tp_as_sequence->sq_item != tupleitem)
|
||||
if (seq->ob_type->tp_as_sequence->sq_item != (intargfunc)tupleitem)
|
||||
return PySeqIter_New(seq);
|
||||
it = PyObject_GC_New(tupleiterobject, &PyTupleIter_Type);
|
||||
if (it == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue