Skip to content

Commit 36eb87d

Browse files
committed
fix(BV): clear bits properly
1 parent e01b758 commit 36eb87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/CCBV.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ let shrink_ bv size =
161161
if size < bv.size then (
162162
let desired = bytes_length_of_size size in
163163
let current = Bytes.length bv.b in
164-
if desired = current then clear_bits_above_ bv size;
164+
clear_bits_above_ bv size;
165165
really_resize_ bv ~desired ~current size
166166
)
167167

0 commit comments

Comments
 (0)