Skip to content

Better handling of integer literal + conversions #675

Description

@ludviggunne

Integer conversions in #if directives are not handled correctly, such as in expr_usual_conversions.c:

#if (-42 + 0U) / -2
foo
#endif

I suggest the constant folding operates on a struct that indicates signedness etc.

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