Skip to content

bpo-9566: Fix size_t=>int downcast warnings #5230

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jan 18, 2018
Merged

bpo-9566: Fix size_t=>int downcast warnings #5230

merged 2 commits into from
Jan 18, 2018

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants