integer
Alexandre Oliva
aoliva@cygnus.com
Thu Mar 23 00:55:00 GMT 2000
On Mar 23, 2000, Nestor Alvarez <nestor@computec.com> wrote:
> int i=-2147483648;
> "warning: decimal integer constant is so large that it is unsigned"
> I think this is a bug
Nope, it's correct. According to the C standard, `-' and `2147483648'
are two separate tokens, and the second one is so large that it is
unsigned. That's why INT_MIN, for example, is defined as (-INT_MAX-1).
--
Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
More information about the Gcc-bugs
mailing list