Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XS: Integer overflow #62

Closed
tevador opened this issue Jun 15, 2018 · 0 comments
Closed

XS: Integer overflow #62

tevador opened this issue Jun 15, 2018 · 0 comments

Comments

@tevador
Copy link

tevador commented Jun 15, 2018

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
@tevador tevador closed this as completed Jun 18, 2018
mkellner pushed a commit that referenced this issue Jun 19, 2018
mkellner pushed a commit that referenced this issue Jun 22, 2018
mkellner pushed a commit that referenced this issue Jul 5, 2018
mkellner pushed a commit that referenced this issue Jul 24, 2018
mkellner pushed a commit that referenced this issue Aug 9, 2018
mkellner pushed a commit that referenced this issue Aug 13, 2018
mkellner pushed a commit that referenced this issue Aug 18, 2018
mkellner pushed a commit that referenced this issue Aug 21, 2018
mkellner pushed a commit that referenced this issue Aug 28, 2018
mkellner pushed a commit that referenced this issue Sep 22, 2018
mkellner pushed a commit that referenced this issue Oct 1, 2018
mkellner pushed a commit that referenced this issue Oct 11, 2018
mkellner pushed a commit that referenced this issue Oct 22, 2018
mkellner pushed a commit that referenced this issue Oct 30, 2018
mkellner pushed a commit that referenced this issue Nov 13, 2018
mkellner pushed a commit that referenced this issue Nov 22, 2018
mkellner pushed a commit that referenced this issue Dec 20, 2018
mkellner pushed a commit that referenced this issue Dec 21, 2018
mkellner pushed a commit that referenced this issue Jan 7, 2019
mkellner pushed a commit that referenced this issue Jan 29, 2019
mkellner pushed a commit that referenced this issue Feb 14, 2019
mkellner pushed a commit that referenced this issue Feb 21, 2019
mkellner pushed a commit that referenced this issue Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant