Skip to content

Fix compilation warning for _YIELD_VALUE #149501

@sergey-miryanov

Description

@sergey-miryanov

Bug report

Bug description:

Following the recent changes to _YIELD_VALUE, MSVC emits warning C4244: 'initializing': conversion from '__int64' to 'int', possible loss of data.

I have a PR ready.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15pre-release feature fixes, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions