From aa9305ac8d694eddbad7cea73450f912d092c8d2 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Tue, 27 Sep 2016 16:07:48 -0500 Subject: [PATCH] bug in difference --- bitmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitmap.go b/bitmap.go index b3b5bbb23..ee2b4421c 100644 --- a/bitmap.go +++ b/bitmap.go @@ -110,7 +110,7 @@ func (b *Bitmap) Difference(other *Bitmap) *Bitmap { if s0 == nil { continue } else if s1 == nil { - segments = append(segments, *s1) + segments = append(segments, *s0) continue } segments = append(segments, *s0.Difference(s1))