Allocate bitmap if needed (existing wrong type

This commit is contained in:
Richard Artoul 2018-11-29 10:02:24 -05:00
parent 3eb060c4c6
commit 50f119df4e

View file

@ -519,7 +519,7 @@ func (b *Bitmap) unionIntoTarget(target *Bitmap, others ...*Bitmap) {
// else {
// Use a bitmap
container := target.Containers.Get(iKey)
if container == nil {
if container == nil || container.containerType != containerBitmap {
buf := make([]uint64, bitmapN)
ob := buf[:bitmapN]
container = &Container{