[Issue 1543] New: Error boxing floats
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 1 16:20:59 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1543
Summary: Error boxing floats
Product: DGCC aka GDC
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: glue layer
AssignedTo: dvdfrdmn at users.sf.net
ReportedBy: mariusmuja at gmail.com
The following program outputs 0 instead of the correct value (95):
import std.stdio;
import std.boxer;
void main(char[][] args)
{
float a = 95.0f;
Box b = box(a);
writefln(b);
}
I have tested it with the latest svn version of gdc and it doesn't work
rorrectly. It outputs the correct value when compiled with dmd.
--
More information about the D.gnu
mailing list