This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Bug with unsigned int data type?
- From: "Steve Dondley" <s at dondley dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Sun, 13 Oct 2002 10:29:03 -0400
- Subject: Bug with unsigned int data type?
Hi,
The following two lines...
unsigned int n;
n = 2147483648;
...generate a "decimal constant is so large thst it is unsigned" warning.
Shouldn't the declaration of the integer as unsigned avoid this warning?
I'm using gcc version 2.95.4 on an Intel 32 bit machine.
Thanks.