http://d.puremagic.com/issues/show_bug.cgi?id=4691
Summary: Incorrect comparison of double and long Product: D Version: D1 & D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bugzi...@digitalmars.com --- Comment #0 from Walter Bright <bugzi...@digitalmars.com> 2010-08-20 12:15:45 PDT --- import std.c.stdio; struct UN { double dd; long ll; } string cmp( UN * pU ) { return pU.dd >= pU.ll ? "OK" : "ERRROR"; } int main() { static UN u = { 10.50, 10 }; printf( "%.*s\n", cmp( &u ) ); return 0; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------