Bug with unsigned int data type?

Steve Dondley s@dondley.com
Sun Oct 13 07:24:00 GMT 2002


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.


More information about the Gcc-help mailing list