[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
Sun Jun 1 07:39:56 PDT 2014


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

--- Comment #1 from Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> ---
If we look at the problematic line in the _old_ std.random (i.e. before PR 1717
was merged), we have the following:

    ResultType min = cast(ResultType) a + 1;

I'm presuming that this is probably simply a typo and that line should read,

    ResultType min = cast(ResultType) (a + 1);

.... ?

--


More information about the Digitalmars-d-bugs mailing list