[Issue 18570] exp function does not work correctly for real in 64bit Windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 7 19:05:34 UTC 2018


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

Răzvan Ștefănescu <rumbu at rumbu.ro> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rumbu at rumbu.ro

--- Comment #1 from Răzvan Ștefănescu <rumbu at rumbu.ro> ---
The exp function works correctly.

The problem is writefln calling snprintf from Microsoft stdlib which does not
support reals. Real parameters are downcasted to double, that's why we obtain
infinity.

The same will happen on 32-bit if compiled with -mscoff32.

Problem:

https://github.com/dlang/phobos/blob/master/std/format.d#L2532

--


More information about the Digitalmars-d-bugs mailing list