[Issue 22527] Casting out-of-range floating point value to signed integer overflows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 19 13:03:18 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22527

moonlightsentinel at disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel at disroot.o
                   |                            |rg

--- Comment #1 from moonlightsentinel at disroot.org ---
The problem here is that the integral value of float.max exceeds int.max, so
it's a truncation followed by an integer overflow.

--


More information about the Digitalmars-d-bugs mailing list