Skip to content

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

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2017

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants