Skip to content

bpo-9566: Silence a warning in Python/getargs.c (Windows x64) - #2890

Merged
zooba merged 1 commit into
python:masterfrom
segevfiner:bpo-9566-getargs-warning
Jul 26, 2017
Merged

zooba merged 1 commit into
python:masterfrom
segevfiner:bpo-9566-getargs-warning

Conversation

@segevfiner

@segevfiner segevfiner commented Jul 26, 2017 •

Copy link
Copy Markdown
Contributor
..\Python\getargs.c(2058): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data

parser->kwtuple is created in Python/getargs.c:1958 with a size of type int, so the cast should be safe. Alternatively, we can convert the len and i local variables to be of Py_ssize_t.

Follow up to #2492.

https://bugs.python.org/issue9566

@segevfiner segevfiner changed the title bpo-9566: Fix a warning in Python/getargs.c (Windows x64) Jul 26, 2017
@zooba
zooba merged commit e7bc7aa into python:master Jul 26, 2017
@segevfiner
segevfiner deleted the bpo-9566-getargs-warning branch July 26, 2017 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants