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

Handle int litterals correctly #2

Open
pascutto opened this issue Apr 1, 2021 · 0 comments
Open

Handle int litterals correctly #2

pascutto opened this issue Apr 1, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@pascutto
Copy link
Contributor

pascutto commented Apr 1, 2021

The translation of int constants is currently assuming that the constant is witten in decimal (see here), which is not the case, as Gospel handles binary, hexadecimal and octal formats too (see here).
The translation should check what kind of format it's dealing with, and call Number.int_literal with the correct kind instead.

@pascutto pascutto added the bug Something isn't working label Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant