Zsolt Kiraly wrote:

> So, I guess the gcc-2.7.2.3 does automatic typecasting, the cross-egcs
> does not ? And the native char seems to be signed, while the cross-char
> unsigned ? I wonder what the ANSI C docs say about this.

ANSI says that the signedness of char is implementation defined.
ARM systems tend to use unsigned char because an ldrb works as a good
unsigned char load; where as if you wanted to sign extend you can only
do that on newer ARMs.

Doesn't gcc have a flag to specify the signedness?

> The code is the robin.c program from Erik Troan's Linux Applications
> Development book, and the first warning was line 193, the second at line
> 220.

Its a bug in the code - he should be using signed char if he intends
to do wacky comparisons with it.

Dave
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to