The problem is that the C language doesn't specify whether plain char is to be signed or unsigned and the convention seems to be "choose the one that can be implemented in the least instructions on the platform in question"
On x86 char is signed by default while on arm char is unsigned by default. Assigning -1 to an unsigned char results in a value of 255.
The problem is that the C language doesn't specify whether plain char is to be signed or unsigned and the convention seems to be "choose the one that can be implemented in the least instructions on the platform in question"
On x86 char is signed by default while on arm char is unsigned by default. Assigning -1 to an unsigned char results in a value of 255.