This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]