[Issue 6343] std.math.nextPow2

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 20 12:59:33 PDT 2015


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

--- Comment #5 from bearophile_hugs at eml.cc ---
(In reply to Jack Stouffer from comment #4)
> https://github.com/D-Programming-Language/phobos/pull/3755

size_t w = 8;
int[nextPow2(w)][6] mat;

nextPow2(8) needs to be 8.

If you think the name of the function is wrong, then change its name, don't
change the semantics :)

--


More information about the Digitalmars-d-bugs mailing list