This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
integer
- To: gcc-bugs at gcc dot gnu dot org
- Subject: integer
- From: Nestor Alvarez <nestor at computec dot com>
- Date: Thu, 23 Mar 2000 09:32:44 +0000
Hello,
while playing around with type "int" I came across the following
statement:
int i=-2147483648;
When compiling I got the following message:
"warning: decimal integer constant is so large that it is unsigned"
I think this is a bug since the range of the values of type "int"
on a 32bit platform is [ -2^31, 2^31) which is -2147483648 to
2147483647.
I used the following platform:
Linux 2.2.7 on PC (Pentium II 333MHZ)
and
gcc version 2.95.1 19990816 (release)
Regards,
Nestor Alvarez
--
--------------------------------------------------
Nestor Alvarez COMPUTEC GmbH Software
Dipl. Inform. (FH)
mailto:nestor@computec.com
http://www.computec.com
voice: +49 721 98160-127 fax: +49 721 98160-129
--------------------------------------------------