Bug 6833 – Floating point literals lose fractional part in headers

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-10-20T02:52:00Z
Last change time
2013-02-09T02:54:03Z
Keywords
pull, wrong-code
Assigned to
andrej.mitrovich
Creator
code

Comments

Comment #0 by code — 2011-10-20T02:52:10Z
--- bug.d --- module bug; auto a = 3 / 2.0; --- dmd -c -H bug.d Resulting header: --- bug.di --- module bug; auto a = 3 / 2; --- When creating an import header, floating point literals are written without their fractional part if it is '.0'.
Comment #1 by andrej.mitrovich — 2013-02-08T15:14:14Z
Comment #2 by yebblies — 2013-02-09T02:54:03Z