This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Implicit casting of the gcc compiler
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Curt Nowak <CurtNowak at gmx dot de>, gcc-help at gcc dot gnu dot org
- Date: Mon, 13 Dec 2004 14:16:26 -0600
- Subject: Re: Implicit casting of the gcc compiler
- References: <41BDF75E.2040100@gmx.de>
Hi Curt,
I believe that GCC will do it this way...
int i = (int)((d + (double)fa) + (double)fb);
...which is the way that C/C++ does it.
HTH,
--Eljay