Skip to content

Conversation

@segevfiner
Copy link
Contributor

@segevfiner segevfiner commented Jul 26, 2017

..\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) bpo-9566: Silence 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