fix(BV): clear bits properly

This commit is contained in:
Simon Cruanes 2022-07-04 22:09:14 -04:00
parent e01b758de8
commit 36eb87db21
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -161,7 +161,7 @@ let shrink_ bv size =
if size < bv.size then ( if size < bv.size then (
let desired = bytes_length_of_size size in let desired = bytes_length_of_size size in
let current = Bytes.length bv.b in let current = Bytes.length bv.b in
if desired = current then clear_bits_above_ bv size; clear_bits_above_ bv size;
really_resize_ bv ~desired ~current size really_resize_ bv ~desired ~current size
) )