Fix bin_index_up

This commit is contained in:
Yury Delendik 2018-10-23 12:51:09 -05:00
parent 5a0b0ec3aa
commit 2f9ae7b7a7

View File

@ -99,6 +99,7 @@ static int bin_index_up(size_t x)
if (x <= 32) return x;
x--;
if (x < 512) return bin_tab[x/8-4] + 1;
if (x > 0x1c00) return 63;
return bin_tab[x/128-4] + 17;
}