rusty icon indicating copy to clipboard operation
rusty copied to clipboard

2-complement signed hex number literals (INT#FFFF == -1?)

Open riederm opened this issue 1 year ago • 2 comments

Should rusty be able to reprsent negative hex numbers as literals? #848 will not allow a line like this: x : INT := INT16#FFFF: in terms of the bit representation, 1111 1111 1111 1111 it is -1 since the declared type is a signed 16 bit integer. I guess it is the same for x: INT := INT2#1111_1111_1111_1111;

riederm avatar May 13 '23 17:05 riederm