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.
This commit is contained in:
Victor Stinner 2013-06-05 00:11:34 +02:00
parent 7e91e771a9
commit a2d56984c7
1 changed files with 1 additions and 1 deletions

View File

@ -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;