Added S as a prefix to signed integers to make more consistent. E.g.: sint8 instead of int8.
This commit is contained in:
parent
3f5fabae92
commit
0ceebfbdad
3 changed files with 136 additions and 7 deletions
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
// Signed integer type examples with two's complement wrapping
|
||||
|
||||
int8 s8 = -1 // should be -1 within int8 range
|
||||
int16 s16 = -32768 // min int16
|
||||
int32 s32 = -2147483648
|
||||
int64 s64 = -9223372036854775808
|
||||
sint8 s8 = -1 // should be -1 within sint8 range
|
||||
sint16 s16 = -32768 // min sint16
|
||||
sint32 s32 = -2147483648
|
||||
sint64 s64 = -9223372036854775808
|
||||
|
||||
print("s8 = " + to_string(s8) + " :: " + typeof(s8))
|
||||
print("s16 = " + to_string(s16) + " :: " + typeof(s16))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue