Skip to content

Commit

Permalink
Not needed for RANGE comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
gamolina committed Nov 8, 2024
1 parent ac7bcfe commit c1e731e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roaring64/bsi64.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func compareValue(e *task, batch []uint64, resultsChan chan *Bitmap, wg *sync.Wa
if isNegative != startIsNegative {
compStartValue = twosComplement(e.valueOrStart, e.bsi.BitCount()+1)
}
if isNegative != endIsNegative {
if isNegative != endIsNegative && e.end != nil {
compEndValue = twosComplement(e.end, e.bsi.BitCount()+1)
}

Expand Down

0 comments on commit c1e731e

Please sign in to comment.