www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11183] New: Win64: lrint yields bad results

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

           Summary: Win64: lrint yields bad results
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: r.sagitario gmx.de



PDT ---
module test;

import std.math;
import std.stdio;

void main()
{
    asm { mov RAX,-1; }
    real x = lrint(5.5);
    writeln(x);
}

compiled with "dmd -m64 test.d" prints

3.43077e-317

Fix is part of this pull request:
https://github.com/D-Programming-Language/phobos/pull/1411/files#diff-8b9f1870415268a4c40b628d596dc405L3188

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