From: Tim Peters Date: Thu, 24 Apr 2003 20:59:52 +0000 (+0000) Subject: Squashed new compiler wngs about trying to compare pointers to X-Git-Tag: v2.3c1~1006 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2af713c2f7412ecfc95fe3b0251714c31b4bdf57;p=python Squashed new compiler wngs about trying to compare pointers to functions with different signatures. --- diff --git a/Objects/listobject.c b/Objects/listobject.c index ae2b5493f8..49d977ed0e 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 645480c955..7456533ccd 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)