[Issue 12835] std.random.uniform with open lower bound cannot support smaller integral types or character types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 11 15:19:33 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12835

--- Comment #3 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/88d86ecda0c53568e4c7036ec85aa7a5a27438f9
Fix Issue #12835: open lower bound for integral-type uniform()

Added a cast to ensure the setting of lower bound can handle character
types and integral types smaller than int.  The additional unittests
should prevent such issues from arising again.

https://github.com/D-Programming-Language/phobos/commit/9e96ee3d38b563fb70c8761a0ccee663d59810cc
Merge pull request #2221 from WebDrake/uniform-lowerbound

Fix Issue #12835: open lower bound for integral-type uniform()

--


More information about the Digitalmars-d-bugs mailing list