SIGN IN SIGN UP

bpo-18407: ast.c uses Py_ssize_t for asdl_seq_LEN() iterator (GH-10655)

When iterating using asdl_seq_LEN(), use 'Py_ssize_t' type instead of
'int' for the iterator variable, to avoid downcast on 64-bit platforms.

_Py_asdl_int_seq_new() now also ensures that the index is greater than
or equal to 0.
V
Victor Stinner committed
4d73ae776140a583fdfe8f016d88cc767791e481
Parent: c48ff73
Committed by GitHub <noreply@github.com> on 11/22/2018, 1:45:16 PM