Skip to content
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

always return int from __Pyx_PyUnicode_KIND #4059

Merged
merged 1 commit into from
Mar 21, 2021
Merged

always return int from __Pyx_PyUnicode_KIND #4059

merged 1 commit into from
Mar 21, 2021

Conversation

maxbachmann
Copy link
Contributor

Even though the Python documentation states, that PyUnicode_KIND will return an int,
it actually returns a value of the underlying type of the PyUnicode_Kind enum.
This could be e.g. an unsigned int which can cause warnings about signed/unsigned comparisions.

Even though the Python documentation states, that PyUnicode_KIND will return an int,
it actually returns a value of the underlying type of the PyUnicode_Kind enum.
This could be e.g. an unsigned int which can cause warnings about signed/unsigned comparisions.
@scoder scoder added this to the 3.0 milestone Mar 21, 2021
@scoder scoder merged commit ff1f703 into cython:master Mar 21, 2021
@scoder
Copy link
Contributor

scoder commented Mar 21, 2021

Thanks

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.

None yet

2 participants