Re: Kill signed chars !!! => PPC uses unsigned chars
From: cutaway
Date: Tue Jun 21 2005 - 08:35:51 EST
The signedness of 'char' is never certain between compilers. There are x86
C compilers that implemented 'char' as unsigned, others as signed, and
others that offered a compile switch to do either way if the default didn't
work with the code being compiled.
When it matters, just be explicit :)
----- Original Message -----
From: "Willy Tarreau" <willy@xxxxxxxxx>
To: "J.A. Magallon" <jamagallon@xxxxxxx>
Cc: <linux-kernel@xxxxxxxxxxxxxxx>; "Andrew Morton" <akpm@xxxxxxxx>
Sent: Tuesday, June 21, 2005 08:54
Subject: Re: Kill signed chars !!! => PPC uses unsigned chars
>
> Well, to my surprize, linux-ppc uses UNSIGNED chars by default. It has
amazed
> me but it's a fact. Let's compile this little program on tux-ppc :
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/