fix memory allocation

This commit is contained in:
chrislu
2022-01-22 08:05:04 -08:00
parent 1ee828b768
commit b9ae16fbc5
2 changed files with 12 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ const (
func bitCount(size int) (count int) {
for ; size > min_size; count++ {
size = size >> 1
size = (size + 1) >> 1
}
return
}