diff options
Diffstat (limited to 'vendor/github.com/RoaringBitmap/roaring/setutil.go')
-rw-r--r-- | vendor/github.com/RoaringBitmap/roaring/setutil.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/github.com/RoaringBitmap/roaring/setutil.go b/vendor/github.com/RoaringBitmap/roaring/setutil.go index 3e8c01dd1f..2fe8151411 100644 --- a/vendor/github.com/RoaringBitmap/roaring/setutil.go +++ b/vendor/github.com/RoaringBitmap/roaring/setutil.go @@ -14,6 +14,7 @@ func equal(a, b []uint16) bool { func difference(set1 []uint16, set2 []uint16, buffer []uint16) int { if 0 == len(set2) { + buffer = buffer[:len(set1)] for k := 0; k < len(set1); k++ { buffer[k] = set1[k] } |