correct utils::nextHighestPowerOf2
The bit shift was done as int and not as current type (size_t for example), thus the computed next highest power of 2 was wrong on large numbers.
Showing
Please
register
or
sign in
to comment
The bit shift was done as int and not as current type (size_t for example), thus the computed next highest power of 2 was wrong on large numbers.