Skip to content

Commit

Permalink
Merge pull request gogf#980 from lutherlau/patch-4
Browse files Browse the repository at this point in the history
Update garray_sorted_str.go
  • Loading branch information
gqcn authored Nov 12, 2020
2 parents 85dd2e9 + ea9e805 commit 97bcf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/garray/garray_sorted_str.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 97bcf2a

Please sign in to comment.