Skip to content

Commit

Permalink
@jaffee cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tgruben committed May 30, 2017
1 parent 498045f commit 7090ee4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions roaring/roaring.go
Original file line number Diff line number Diff line change
Expand Up @@ -1616,10 +1616,8 @@ func xor(a, b *container) *container {
func xorArrayArray(a, b *container) *container {
output := &container{}
na, nb := len(a.array), len(b.array)
for i, j := 0, 0; ; {
if i >= na && j >= nb {
break
} else if i < na && j >= nb {
for i, j := 0, 0; i < na || j < nb; {
if i < na && j >= nb {
output.add(a.array[i])
i++
continue
Expand Down

0 comments on commit 7090ee4

Please sign in to comment.