From c1e731e8a7f29381ca2e5cccdaf88db810355958 Mon Sep 17 00:00:00 2001 From: "GUY.MOLINARI" Date: Fri, 8 Nov 2024 21:02:16 +0000 Subject: [PATCH] Not needed for RANGE comparisons --- roaring64/bsi64.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roaring64/bsi64.go b/roaring64/bsi64.go index 65462b70..46dbe121 100644 --- a/roaring64/bsi64.go +++ b/roaring64/bsi64.go @@ -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) }