Why isn't -funsigned-char working?

Rob Landley rob at landley.net
Tue Apr 18 01:40:13 UTC 2006


We're feeding in -funsigned-char, I can see it on the command line when I go 
V=1.  And yet, when I go:

char c=255;
printf("%d",c);

I get -1.  Why is that?

This is with Ubuntu "flatulent badger" gcc 4.0.2...

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list