From: Victor Stinner Date: Tue, 4 Jun 2013 22:11:34 +0000 (+0200) Subject: Issuse #17932: Fix an integer overflow issue on Windows 64-bit in tuple X-Git-Tag: v3.4.0a1~575 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2d56984c72519a0ea046025876f92efcf40f2b2;p=python Issuse #17932: Fix an integer overflow issue on Windows 64-bit in tuple iterators: change the C type of tupleiterobject.it_index from long to Py_ssize_t. --- diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 0a95909275..d808e08aa1 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -930,7 +930,7 @@ PyTuple_Fini(void) typedef struct { PyObject_HEAD - long it_index; + Py_ssize_t it_index; PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */ } tupleiterobject;