diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-06-04 22:11:34 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-06-04 22:11:34 (GMT) |
commit | a2d56984c72519a0ea046025876f92efcf40f2b2 (patch) | |
tree | fd26a129180178f8bf17accde3a59435214b3d26 /Objects | |
parent | 7e91e771a9348dcc28a9bac1a321a3bc1e3cfda8 (diff) | |
download | cpython-a2d56984c72519a0ea046025876f92efcf40f2b2.zip cpython-a2d56984c72519a0ea046025876f92efcf40f2b2.tar.gz cpython-a2d56984c72519a0ea046025876f92efcf40f2b2.tar.bz2 |
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.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/tupleobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 0a95909..d808e08 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; |