Buddy: fix cramlimit_bits()

The other assertion is what we actually mean:

The log2up(sz) must be at least bits, otherwise it makes no sense.
parent 96902eaa
......@@ -203,7 +203,6 @@ BUDDYF(cramlimit_bits)(size_t sz, int8_t cram, int8_t bits)
{
int8_t up;
assert(sz >= (size_t)1 << bits);
if (cram == 0)
return (cram);
up = (int8_t)(uint8_t)log2up(sz);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment