Skip to content

Commit

Permalink
Fix aliasing in ParOr
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppen committed Jun 9, 2021
1 parent 8fc1aec commit 0c79c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func ParOr(parallelism int, bitmaps ...*Bitmap) *Bitmap {
if lKey == MaxUint16 && hKey == 0 {
return New()
} else if len(bitmaps) == 1 {
return bitmaps[0]
return bitmaps[0].Clone()
}

keyRange := int(hKey) - int(lKey) + 1
Expand Down

0 comments on commit 0c79c76

Please sign in to comment.