linuxppc

Magnus ÃÂgren isc07046@comp.nus.edu.sg
Sat Nov 11 23:58:00 GMT 2000


Hello

I don't know if it is a bug but when i compile a program on linuxppc
that make a comparison like

char c;
...
...

if (c < 0)
{
....
}


I get the following warning: comparison is always false due to limited
range of data type.

So I have to use the -fsigned-char flag when compiling. This is not the
case when compiling on linux intel, shouldn't it be the same???


/Magnus



More information about the Gcc-bugs mailing list