[Bug c++/43284] Explicit casting of double to long long causes value to overflow

schwab at linux-m68k dot org gcc-bugzilla@gcc.gnu.org
Sun Mar 7 22:07:00 GMT 2010



------- Comment #1 from schwab at linux-m68k dot org  2010-03-07 22:07 -------
9223372036854775807 has more significant bits than what fits in a double, it is
rounded to 9223372036854775808.0, which then overflows when converted to long
long.


-- 

schwab at linux-m68k dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43284



More information about the Gcc-bugs mailing list