diff --git a/searcher/sorts/fast.go b/searcher/sorts/fast.go index 63bea74..fe8f6f3 100644 --- a/searcher/sorts/fast.go +++ b/searcher/sorts/fast.go @@ -87,7 +87,7 @@ func (f *FastSort) find(target *uint32) (bool, int) { mid := (low + high) / 2 if f.data[mid].Id == *target { return true, mid - } else if f.data[mid].Id < *target { + } else if f.data[mid].Id > *target { high = mid - 1 } else { low = mid + 1