Skip to content

bpo-40147: Fix a compiler warning on Windows in Python/compile.c#19389

Merged
pablogsal merged 1 commit intopython:masterfrom
ZackerySpytz:bpo-40147-nkeywords-Py_ssize_t
Apr 6, 2020
Merged

bpo-40147: Fix a compiler warning on Windows in Python/compile.c#19389
pablogsal merged 1 commit intopython:masterfrom
ZackerySpytz:bpo-40147-nkeywords-Py_ssize_t

Conversation

@ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Apr 6, 2020

Python\compile.c(4054,1): warning C4244: 'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data

Change the type of nkeywords to Py_ssize_t.

https://bugs.python.org/issue40147

Change the type of nkeywords to Py_ssize_t.
Copy link
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants