We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d06bd commit c60edc5Copy full SHA for c60edc5
roaring.go
@@ -10,7 +10,6 @@ import (
10
"encoding/base64"
11
"fmt"
12
"io"
13
- "slices"
14
"strconv"
15
16
"github.com/RoaringBitmap/roaring/v2/internal"
@@ -443,9 +442,6 @@ func (rb *Bitmap) toArray(array *[]uint32) *[]uint32 {
443
442
// slice that is given to ToExistingArray. It is the callers duty to make sure the slice
444
// has the right size.
445
func (rb *Bitmap) ToExistingArray(array *[]uint32) *[]uint32 {
446
- size := int(rb.GetCardinality())
447
- *array = slices.Grow(*array, size)
448
- *array = (*array)[:size]
449
return rb.toArray(array)
450
}
451
0 commit comments