Commit 2af713c2 authored by Tim Peters's avatar Tim Peters

Squashed new compiler wngs about trying to compare pointers to

functions with different signatures.
parent da4ec5a7
...@@ -2375,7 +2375,7 @@ list_iter(PyObject *seq) ...@@ -2375,7 +2375,7 @@ list_iter(PyObject *seq)
PyErr_BadInternalCall(); PyErr_BadInternalCall();
return NULL; 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); return PySeqIter_New(seq);
it = PyObject_GC_New(listiterobject, &PyListIter_Type); it = PyObject_GC_New(listiterobject, &PyListIter_Type);
if (it == NULL) if (it == NULL)
......
...@@ -753,7 +753,7 @@ tuple_iter(PyObject *seq) ...@@ -753,7 +753,7 @@ tuple_iter(PyObject *seq)
PyErr_BadInternalCall(); PyErr_BadInternalCall();
return NULL; 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); return PySeqIter_New(seq);
it = PyObject_GC_New(tupleiterobject, &PyTupleIter_Type); it = PyObject_GC_New(tupleiterobject, &PyTupleIter_Type);
if (it == NULL) if (it == NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment