]> granicus.if.org Git - python/commitdiff
Squashed new compiler wngs about trying to compare pointers to
authorTim Peters <tim.peters@gmail.com>
Thu, 24 Apr 2003 20:59:52 +0000 (20:59 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 24 Apr 2003 20:59:52 +0000 (20:59 +0000)
functions with different signatures.

Objects/listobject.c
Objects/tupleobject.c

index ae2b5493f8a5ae248d62f703b8a511e32989bda3..49d977ed0eb3100d5739316a8b5a9300aab4b4c7 100644 (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)
index 645480c9552e768100d03d8b1b8663f5a7bb007e..7456533ccd4b9b48b1462577b3e58feb07b84f67 100644 (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)