Skip to content

Commit c1e731e

Browse files
committed
Not needed for RANGE comparisons
1 parent ac7bcfe commit c1e731e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roaring64/bsi64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func compareValue(e *task, batch []uint64, resultsChan chan *Bitmap, wg *sync.Wa
402402
if isNegative != startIsNegative {
403403
compStartValue = twosComplement(e.valueOrStart, e.bsi.BitCount()+1)
404404
}
405-
if isNegative != endIsNegative {
405+
if isNegative != endIsNegative && e.end != nil {
406406
compEndValue = twosComplement(e.end, e.bsi.BitCount()+1)
407407
}
408408

0 commit comments

Comments
 (0)