mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
7e91e771a9
commit
a2d56984c7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue