Skip to content

XS: Integer overflow #62

Description

@tevador

Numbers in javascript are floats, but this code produces what appears to be an integer overflow:

./xst -e "let q = 2000000000; print(q); q -= (-2000000000); print(q);"

Expected result:

2000000000
4000000000

Actual result (Windows build):

2000000000
-294967296

Actual result (Linux build):

2000000000
1705032704

Activity

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