bug in difference

This commit is contained in:
Todd Gruben 2016-09-27 16:07:48 -05:00
parent dafe954f8e
commit aa9305ac8d

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