From 7090ee4d7ada4c9634fb7049392e2dff73dae826 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Tue, 30 May 2017 12:39:23 -0500 Subject: [PATCH] @jaffee cleanup --- roaring/roaring.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/roaring/roaring.go b/roaring/roaring.go index 79d19337c..8d477ba10 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -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