for uint8 Types 128u + 10u = 138u for int Types 128 + 10 = -118 ! Reiner
Is this because it is treating the 128 as a hex number?
Pardon my ignorance.
1 of 1 people found this helpful
The values an uint8 can represent are from 0 ro 255. From 255 it would overflow to 0
The values an int8 can represent are from -128 to 127, From 127 it would overflow to -128
That is where I went wrong, thank you for the explanation, gentlemen.