mirror of
https://github.com/fluencelabs/musl
synced 2025-04-24 14:52:13 +00:00
Fix off-by-one error in bin_index_up
This commit is contained in:
parent
635de63a8a
commit
b6d60256a5
@ -99,7 +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;
|
||||
if (x > 0x1c00) return 64;
|
||||
return bin_tab[x/128-4] + 17;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user