Skip to content

New warnings: 'function': conversion from 'int64_t' to 'int', possible loss of data #99984

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

Closed
sobolevn opened this issue Dec 4, 2022 · 2 comments
Assignees
Labels
type-bug An unexpected behavior, bug, or error

Comments

@sobolevn
Copy link
Member

sobolevn commented Dec 4, 2022

Bug report

GitHub is showing new warnings in Modules/_xxsubinterpretersmodule.c:
Снимок экрана 2022-12-04 в 12 07 02

'function': conversion from 'int64_t' to 'int', possible loss of data [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]

Looks like #99940 is the cause.
Link: https://github.com/python/cpython/blame/bf26bdf6ac04878fc720e78422991aaedb9808a1/Modules/_xxsubinterpretersmodule.c#L2530
CC @ericsnowcurrently

Linked PRs

@sobolevn sobolevn added the type-bug An unexpected behavior, bug, or error label Dec 4, 2022
@ramvikrams
Copy link
Contributor

so should we not convert from int64_t to int, can it fix the problem

@ericsnowcurrently
Copy link
Member

This should be fixed. Thanks for letting us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants