Squashed new compiler wngs about trying to compare pointers to
functions with different signatures.
This commit is contained in:
parent
da4ec5a7bc
commit
2af713c2f7
|
@ -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…
Reference in New Issue