From d3606e274dd84363859011dcf43dbb043556dacb Mon Sep 17 00:00:00 2001 From: Richard Artoul Date: Wed, 28 Nov 2018 15:07:56 -0500 Subject: [PATCH] fix bug --- roaring/roaring.go | 1 + 1 file changed, 1 insertion(+) diff --git a/roaring/roaring.go b/roaring/roaring.go index 8cc856bfc..99f7a06fa 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -398,6 +398,7 @@ func (b *Bitmap) Intersect(other *Bitmap) *Bitmap { // Union returns the bitwise union of b and other. func (b *Bitmap) Union(others ...*Bitmap) *Bitmap { output := NewBitmap() + output.UnionInPlace(b) output.UnionInPlace(others...) return output }