This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: The utility of standard's semantics for overflow
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Olivier Galibert <galibert at pobox dot com>
- Cc: Dave Korn <dave dot korn at artimi dot com>, "'Robert Dewar'" <dewar at adacore dot com>, Theodore dot Papadopoulo at sophia dot inria dot fr, "'Michael Veksler'" <VEKSLER at il dot ibm dot com>, gcc at gcc dot gnu dot org
- Date: 01 Jul 2005 15:21:23 -0300
- Subject: Re: The utility of standard's semantics for overflow
- References: <42C29092.8070708@adacore.com><SERRANOBWFXbEJSGdvy0000029b@SERRANO.CAM.ARTIMI.COM><20050629183551.GA85796@dspnet.fr.eu.org>
On Jun 29, 2005, Olivier Galibert <galibert@pobox.com> wrote:
> char x = (char)((unsigned char)y + (unsigned char)z)
> is too ugly to live.
Yeah, indeed, one shouldn't assume char is signed :-) :-)
(strictly speaking, you don't, but I thought this would be funny so I
went ahead and posted it)
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}