From 2af713c2f7412ecfc95fe3b0251714c31b4bdf57 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 24 Apr 2003 20:59:52 +0000 Subject: Squashed new compiler wngs about trying to compare pointers to functions with different signatures. --- Objects/listobject.c | 2 +- Objects/tupleobject.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/listobject.c b/Objects/listobject.c index ae2b549..49d977e 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -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) diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 645480c..7456533 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -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) -- cgit v0.12