Skip to content

Commit

Permalink
fix: 修复fast.go中的二分错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Makonike committed Jul 13, 2022
1 parent 6ac3e08 commit e4ec009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searcher/sorts/fast.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4ec009

Please sign in to comment.