mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Close #17932: Fix an integer overflow issue on Windows 64-bit in iterators:
change the C type of seqiterobject.it_index from long to Py_ssize_t.
This commit is contained in:
parent
0b81111b18
commit
e0b99ba140
2 changed files with 4 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
long it_index;
|
||||
Py_ssize_t it_index;
|
||||
PyObject *it_seq; /* Set to NULL when iterator is exhausted */
|
||||
} seqiterobject;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue