Update roaring.go

This commit is contained in:
tgruben 2022-03-10 08:26:07 -06:00 committed by GitHub
parent 09a9932951
commit 52e9027c79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3594,7 +3594,7 @@ func (c *Container) bitmapToArray() *Container {
if fail {
// the onlyreason we are here is because N was incorrect
// so we force a recount of N and try again
c.bitmapRepair() // the onlyreason we are here is because N was incorrect
c.bitmapRepair()
array, fail, n = makeArray(bitmap, make([]uint16, c.N()))
if fail {
//this should not be able to happen under any circumstance