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

Very large negative UInt64s crash the compiler #6175

Closed
aljelly opened this issue Jun 11, 2018 · 0 comments
Closed

Very large negative UInt64s crash the compiler #6175

aljelly opened this issue Jun 11, 2018 · 0 comments

Comments

@aljelly
Copy link

aljelly commented Jun 11, 2018

test = -9999999999999999999
test = -99999999999999999999 # will also crash, if the above is commented out

Reproduced on play.crystal-lang.org

Output:

Invalid UInt64: -9999999999999999999
???
???
???
???
???
???
???
???
???
???
???
???

Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues
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