Skip to content

Large unsigned integer literal is generated to signed literal #274

@upsuper

Description

@upsuper

Another issue apart from #272. Having the following code

typedef unsigned long uint32_t;
const uint32_t k = 0x80000000U;

it generates

pub const k: u32 = -2147483648;

which is clearly wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions