Skip to content

Make condition inside codegen_addop_load_const a macro #129552

Closed
@WolframAlph

Description

@WolframAlph

Bug report

Bug description:

We need to reuse this condition:

if (!overflow && val >= 0 && val < 256 && val < _PY_NSMALLPOSINTS) {

in CFG. FTR: #129568 (comment).

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-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