[Issue 15204] wrong code with -m32 -O -release (floating points, x86)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Nov 14 16:22:37 PST 2015


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

--- Comment #3 from Илья Ярошенко <ilyayaroshenko at gmail.com> ---
unittest {
    double a, b;
        a = -5.50533e+307;
        b = 4.49423e+307;
    writefln("a = %a, b = %a, (a+b)/2.0 = %a", a, b, (a+b)/2.0);
    assert((a+b)/2.0 > a);
}

--


More information about the Digitalmars-d-bugs mailing list