[phobos] phobos commit, revision 2167
dsource.org
noreply at dsource.org
Tue Nov 16 12:39:18 PST 2010
phobos commit, revision 2167
user: rsinfu
msg:
Fixed bug 4445: roundTo!ubyte(255.0) throws.
to!ubyte(255.0+0.5) overflows. This change applies std.math.round() to the argument to prevent the overflow, and makes roundTo() behave like std.math.lround().
I left to!ubyte(255.5), to!ubyte(255.1) etc. throwing.
http://www.dsource.org/projects/phobos/changeset/2167
More information about the phobos
mailing list