summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-04-24 20:59:52 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-04-24 20:59:52 (GMT)
commit2af713c2f7412ecfc95fe3b0251714c31b4bdf57 (patch)
treebe147b595e6f07a70e143727cd7f28623a9c8988 /Objects
parentda4ec5a7bc4c49b1f86f74e6bfe822cf8a15315e (diff)
downloadcpython-2af713c2f7412ecfc95fe3b0251714c31b4bdf57.zip
cpython-2af713c2f7412ecfc95fe3b0251714c31b4bdf57.tar.gz
cpython-2af713c2f7412ecfc95fe3b0251714c31b4bdf57.tar.bz2
Squashed new compiler wngs about trying to compare pointers to
functions with different signatures.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/listobject.c2
-rw-r--r--Objects/tupleobject.c2
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)