warning: decimal constant is so large that it is unsigned

Neil Booth neil@daikokuya.demon.co.uk
Fri Oct 26 11:40:00 GMT 2001


Pergola, Michael wrote:-

> 	I am using the gcc cross compiler for the Power PC [gcc version
> 2.95.2 19991030 (2.95.3 prerelease/franzo)] and am getting a weird warning.
> It seems that I have set an int value to its minimum value of  -2147483648.
> The compiler gives me the warning of:
> 	
> /home/usac0314/xena-sandbox/xena-prototypes/code/database/db-dat.c:6150:
> warning: decimal constant is so large that it is unsigned

"-2147483648" is two tokens: "-" and "2147483648".  The latter has
type "int".  Does that help?

Neil.



More information about the Gcc-bugs mailing list