[Bug c++/33182] ()
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Aug 25 09:14:00 GMT 2007
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-08-25 09:14 -------
(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.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33182
More information about the Gcc-bugs
mailing list