From 29d21259f0484a92841b745abfc45dbb17c74bee Mon Sep 17 00:00:00 2001
From: Aliaksandr Valialkin <valyala@gmail.com>
Date: Fri, 17 Jan 2020 18:10:58 +0200
Subject: [PATCH] lib/uint64set: typo fix in Set.Intersect

---
 lib/uint64set/uint64set.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/uint64set/uint64set.go b/lib/uint64set/uint64set.go
index 27f019ed21..45ae9c88a1 100644
--- a/lib/uint64set/uint64set.go
+++ b/lib/uint64set/uint64set.go
@@ -198,7 +198,7 @@ func (s *Set) Intersect(a *Set) {
 	i := 0
 	j := 0
 	for {
-		for i < len(s.buckets) && j <= len(a.buckets) && s.buckets[i].hi < a.buckets[j].hi {
+		for i < len(s.buckets) && j < len(a.buckets) && s.buckets[i].hi < a.buckets[j].hi {
 			s.buckets[i] = bucket32{}
 			i++
 		}