unsigned char vs. signed char

Adam Jackson ajax at redhat.com
Tue Jul 15 17:22:55 UTC 2014


On Tue, 2014-07-15 at 10:40 -0600, Orion Poplawski wrote:
> Did you know that "char" defaults to "signed char" on x86 but "unsigned char" 
> on ppc and arm?  I didn't.

Yep, found that out the hard way.  It annoyed me enough that I went
digging in the gcc source to find the answer for all platforms:

http://ajax.fedorapeople.org/is-char-signed-or-not.txt

- ajax



More information about the devel mailing list