summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-04 21:02:46 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-06-04 21:02:46 (GMT)
commite0b99ba140f83551cdeecb2a4ca9817aedde7ff5 (patch)
treee2094750320a8fcb440f85a363f0ac6c3ee2387c /Objects
parent0b81111b18790e5d95cb84a09d15aadfb8a1dadf (diff)
downloadcpython-e0b99ba140f83551cdeecb2a4ca9817aedde7ff5.zip
cpython-e0b99ba140f83551cdeecb2a4ca9817aedde7ff5.tar.gz
cpython-e0b99ba140f83551cdeecb2a4ca9817aedde7ff5.tar.bz2
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.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/iterobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/iterobject.c b/Objects/iterobject.c
index 9acd1b7..77ff810 100644
--- a/Objects/iterobject.c
+++ b/Objects/iterobject.c
@@ -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;