[Issue 3078] New: NaN reported as equal to zero

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 18 18:46:35 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3078

           Summary: NaN reported as equal to zero
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrei at metalanguage.com


import std.math;

void main()
{
    double x[] = new double[1];
    double a = x[0];
    assert(a == 0);
    assert(x[0] == 0);
    assert(isnan(a));
    assert(isnan(x[0]));
}

No assert fails in the code above - and one hour is gone off my life.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list