digitalmars.D.bugs - [Issue 4445] New: roundTo!ubyte(255.0) throws
- d-bugmail puremagic.com (25/25) Jul 10 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4445
- d-bugmail puremagic.com (10/10) Nov 14 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4445
- d-bugmail puremagic.com (11/11) Nov 16 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4445
http://d.puremagic.com/issues/show_bug.cgi?id=4445 Summary: roundTo!ubyte(255.0) throws Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: dsimcha yahoo.com Seems like an off-by-one error in checking the bounds. import std.stdio, std.conv; void main() { auto foo = cast(ubyte) roundTo!uint(255.0); writeln(foo); // 255: Works. auto bar = roundTo!ubyte(254.0); writeln(bar); // 254: Works. auto baz = roundTo!ubyte(255.0); // Throws } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 10 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4445 Shin Fujishiro <rsinfu gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |rsinfu gmail.com AssignedTo|nobody puremagic.com |rsinfu gmail.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 14 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4445 Shin Fujishiro <rsinfu gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Fixed: http://www.dsource.org/projects/phobos/changeset/2167 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 16 2010