Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jan 18, 2018

Use wider types (int => Py_ssize_t) to avoid integer overflows.

https://bugs.python.org/issue9566

Use wider types (int => Py_ssize_t) to avoid integer overflows.
Use Py_ssize_t type rather than int, since gc_list_size() returns a Py_ssize_t.

This change prevent any risk of integer overflow.
@vstinner vstinner merged commit 05d68a8 into python:master Jan 18, 2018
@vstinner vstinner deleted the fix_win64_warngs branch January 18, 2018 10:15
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.

3 participants