dont keep n in sync with bitmaprun in place

This commit is contained in:
Richard Artoul 2018-11-28 21:44:37 -05:00
parent b47292aa26
commit eb5ad7bf49

View file

@ -2703,10 +2703,7 @@ func unionArrayBitmap(a, b *Container) *Container {
// of a will need to be repaired after the fact.
func unionBitmapArrayInPlace(a, b *Container) {
for _, v := range b.array {
if !a.bitmapContains(v) {
a.bitmap[v/64] |= (1 << uint64(v%64))
a.n++
}
a.bitmap[v/64] |= (1 << uint64(v%64))
}
}