Skip to content

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

Description

@sobolevn

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

Activity

  1. ramvikrams commented on Dec 5, 2022

    @ramvikrams
    Contributor

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

  2. added a commit that references this issue on Dec 5, 2022
  3. ericsnowcurrently commented on Dec 5, 2022

    @ericsnowcurrently
    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

Metadata

Metadata

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions