← Back to index
|
Original Bugzilla link
Bug 11183 – Win64: lrint yields bad results
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-06T09:14:00Z
Last change time
2014-02-28T00:04:28Z
Assigned to
nobody
Creator
r.sagitario
Comments
Comment #0
by r.sagitario — 2013-10-06T09:14:32Z
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
Comment #1
by r.sagitario — 2014-02-28T00:04:28Z
Fixed as part of
https://github.com/D-Programming-Language/phobos/pull/1411