Comment 6 for bug 1154042

Revision history for this message
peter green (plugwash) wrote :

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.