FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Issuse #17932: Fix an integer overflow issue on Windows 64-bit in tuple · python/cpython@a2d5698 · GitHub

Repository navigation

Commit a2d5698

Browse files
committed
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.
1 parent 7e91e77 commit a2d5698

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Objects/tupleobject.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ PyTuple_Fini(void)
930930

931931
typedef struct {
932932
PyObject_HEAD
933-
long it_index;
933+
Py_ssize_t it_index;
934934
PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */
935935
} tupleiterobject;
936936

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL