c++/1664: minimum value for signed long integers

Alexandre Oliva aoliva@redhat.com
Sun Apr 1 00:00:00 GMT 2001


The following reply was made to PR c++/1664; it has been noted by GNATS.

From: Alexandre Oliva <aoliva@redhat.com>
To: sylvain.gommier@m4x.org
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/1664: minimum value for signed long integers
Date: 17 Jan 2001 01:32:29 -0200

 On Jan 16, 2001, sylvain.gommier@m4x.org wrote:
 
 > wrong warning 'decimal integer constant is so large that it is unsigned' when writing signed long sl2 = - 2147483648;
 
 > well, it's only a warning ...
 
 And a correct one.  There's no such thing as a literal negative
 integer in C.  `-' is a unary operator that negates the 2147483648
 literal constant, which is indeed so large that it is unsigned.
 
 Thanks for the bug report.
 
 -- 
 Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
 Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
 CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
 Free Software Evangelist    *Please* write to mailing lists, not to me


More information about the Gcc-prs mailing list