Kaydet (Commit) a2d56984 authored tarafından Victor Stinner's avatar Victor Stinner

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.
üst 7e91e771
...@@ -930,7 +930,7 @@ PyTuple_Fini(void) ...@@ -930,7 +930,7 @@ PyTuple_Fini(void)
typedef struct { typedef struct {
PyObject_HEAD PyObject_HEAD
long it_index; Py_ssize_t it_index;
PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */ PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */
} tupleiterobject; } tupleiterobject;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment