Skip to content

i64.as-i32 prints 2147483648 as 2.147484e9 in its out-of-bounds message #9725

Open

Description

@morphqdd

i64.as-i32 prints the rejected number with %s, which rounds it:

Can't convert i64 number 2.147484e9 to i32 because it's out of i32 bounds

The value is 2147483648, one past the limit, and the message can't tell it from 2147483647, which fits. number.as-i64 has the same problem: Can't convert number 9.223372e18 to i64. i32.as-i16 prints 32768 in full.

The message should print the exact integer.

Activity

  1. added 3 commits that reference this issue on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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