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

Handling of the unary_minus for the untyped unsigned literals. #8

Open
flysand7 opened this issue May 30, 2021 · 0 comments
Open

Handling of the unary_minus for the untyped unsigned literals. #8

flysand7 opened this issue May 30, 2021 · 0 comments

Comments

@flysand7
Copy link
Contributor

flysand7 commented May 30, 2021

The following sif code:

a: uint = -0xFFFF_FFFF_FFFF_FFFF;
printa(a);

Prints out 0 to the screen.

Note: In checker.cpp, line 2822 we assign a negative version of int, f32 and f64 values to the result_operand. The uint_value stays at zero. Either an error should be printed or the behaviour in this case should be more defined (e.g. performing the minus as if on signed integer)

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