Merge pull request #980 from lutherlau/patch-4

Update garray_sorted_str.go
This commit is contained in:
John Guo
2020-11-12 20:44:48 +08:00
committed by GitHub

View File

@ -445,7 +445,7 @@ func (a *SortedStrArray) binSearch(value string, lock bool) (index int, result i
mid := 0
cmp := -2
for min <= max {
mid = (min + max) / 2
mid = min + int((max-min)/2)
cmp = a.getComparator()(value, a.array[mid])
switch {
case cmp < 0: