Squashed new compiler wngs about trying to compare pointers to

functions with different signatures.
This commit is contained in:
Tim Peters 2003-04-24 20:59:52 +00:00
parent da4ec5a7bc
commit 2af713c2f7
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)