November 16, 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