Re: potential runtime problem on arm, powerpc and s390 due to incorrect assumption on char signedness
On Sun, Jan 13, 2002 at 08:20:20PM +0100, Gerhard Tonn wrote:
> In other contexts the right solution is to make the type of the variable
> 'signed char'.
For software with problems like that all over the place, you could use
gcc -fsigned-char if you don't have time to track down the individual
bugs. Char might be unsigned for a reason, like that it's faster to use
unsigned char on that arch, so the best solution is still to say signed char
where you mean it, use int with getchar, etc.
#define X(x,y) x##y
Peter Cordes ; e-mail: X(firstname.lastname@example.org. , ns.ca)
"The gods confound the man who first found out how to distinguish the hours!
Confound him, too, who in this place set up a sundial, to cut and hack
my day so wretchedly into small pieces!" -- Plautus, 200 BCE