bug in difference

This commit is contained in:
Todd Gruben 2016-09-27 16:07:48 -05:00
parent 72db5500ca
commit f2f7de4fd7

View file

@ -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))