sif icon indicating copy to clipboard operation
sif copied to clipboard

Handling of the unary_minus for the untyped unsigned literals.

Open flysand7 opened this issue 4 years ago • 0 comments

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)

flysand7 avatar May 30 '21 00:05 flysand7