summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)