mirror of
https://github.com/fluencelabs/musl
synced 2025-04-24 14:52:13 +00:00
Fix bin_index_up
This commit is contained in:
parent
5a0b0ec3aa
commit
2f9ae7b7a7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user