Thread (4 messages) 4 messages, 3 authors, 2007-08-29

Re: ppc_8xx-gcc from eldk strange behaviour

From: Scott Wood <hidden>
Date: 2007-08-28 19:02:06

On Tue, Aug 28, 2007 at 08:56:10PM +0200, DI BACCO ANTONIO - technolabs wrote:
If I compile it with host gcc, there is no warning and the message "x is negative" is printed.
If I compile it with ppc_8xx-gcc there is a warning "main.c:11: warning: comparison is always false due to limited range of data type" and the program prints message "x is positive". 
To correct the problem I have to put signed before char.
C does not specify the signedness of char.  If you care, you need to
explicitly specify.

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help