This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33182] ()
- From: "siegerstein at pochta dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2007 10:01:42 -0000
- Subject: [Bug c++/33182] ()
- References: <bug-33182-15016@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from siegerstein at pochta dot ru 2007-08-25 10:01 -------
(In reply to comment #2)
> (float) 5 / 8
> Means the same as:
> ((float)5) / 8
>
> But while both:
> (float) (5 / 8)
> and
> float (5 / 8)
> Are doing the division in integer.
>
> So this is invalid.
>
Thanks, Andrew!
OPENSOURCE FOR EVER! :)
--
siegerstein at pochta dot ru changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33182