Skip to content

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

Merged
vstinner merged 2 commits into
python:masterfrom
vstinner:fix_win64_warngs
Jan 18, 2018
Merged

vstinner merged 2 commits into
python:masterfrom
vstinner:fix_win64_warngs

Conversation

@vstinner

@vstinner vstinner commented Jan 18, 2018 •

Copy link
Copy Markdown
Member

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

3 participants