Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-18407: ast.c now uses Py_ssize_t for asdl_seq_LEN() #10655

Merged
merged 1 commit into from Nov 22, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 22, 2018

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

_Py_asdl_int_seq_new() now also ensures that the index is greater or
equal than 0.

https://bugs.python.org/issue18407

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

_Py_asdl_int_seq_new() now also ensures that the index is greater or
equal than 0.
@vstinner vstinner merged commit 4d73ae7 into python:master Nov 22, 2018
@vstinner vstinner deleted the ast_py_ssize_t branch Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants