Skip to content

Conversation

@Fidget-Spinner
Copy link
Member

@Fidget-Spinner Fidget-Spinner commented Feb 4, 2021

In MSVC, I get warnings during compilation:
1>\Documents\GitHub\cpython\Python\pystate.c(96,57): warning C4244: '=': conversion from 'int64_t' to 'Py_ssize_t', possible loss of data.
It seems that runtime->unicode_ids.next_index is type Py_ssize_t, not int64_t.

This was introduced in 44bf57a which only exists in 3.10, so no backport required.

cc @vstinner

https://bugs.python.org/issue42882

@vstinner vstinner changed the title Fix compiler warnings in MSVC bpo-42882: Fix compiler warnings in MSVC Feb 4, 2021
@vstinner vstinner merged commit 196d4de into python:master Feb 4, 2021
@vstinner
Copy link
Member

vstinner commented Feb 4, 2021

Merged, thanks.

@Fidget-Spinner Fidget-Spinner deleted the ssizet-int64 branch February 6, 2021 08:43
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
_PyRuntimeState.unicode_ids.next_index type is Py_ssize_t.
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