This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: warning: decimal constant is so large that it is unsigned
- To: "Pergola, Michael" <MichaelPergola at Danfoss dot com>
- Subject: Re: warning: decimal constant is so large that it is unsigned
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Fri, 26 Oct 2001 19:40:49 +0100
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>,"Tom Englert (E-mail)" <EnglertTom at aol dot com>
- References: <E1836A7F3557D311A14000805F9F36FCD4E505@usdfo011.usac.danfoss.net>
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.