Skip to content

Commit

Permalink
Merge pull request #124 from maciej/to-arr-container-double-alloc
Browse files Browse the repository at this point in the history
bitmapContainer.toArrayContainer: remove double slice allocation
  • Loading branch information
lemire authored Nov 7, 2017
2 parents f69af21 + 1e4fa19 commit 5930de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitmapcontainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ func (bc *bitmapContainer) loadData(arrayContainer *arrayContainer) {
}

func (bc *bitmapContainer) toArrayContainer() *arrayContainer {
ac := newArrayContainerCapacity(bc.cardinality)
ac := &arrayContainer{}
ac.loadData(bc)
return ac
}
Expand Down

0 comments on commit 5930de3

Please sign in to comment.