We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e56e0d commit 6424367Copy full SHA for 6424367
1 file changed
matcher.go
@@ -14,11 +14,10 @@ type Matcher struct {
14
15
func (m *Matcher) getMatchingHashFromListNodeSearch() *NodeHash {
16
hashes := m.currentNode.Hashes
17
- lower := int32(0)
18
upper := m.currentNode.HashesCount - 1
19
- middle := int32(0)
+ lower := int32(0)
20
for lower <= upper {
21
- middle = lower + (upper-lower)/2
+ middle := lower + (upper-lower)/2
22
if hashes[middle].HashCode == m.hash {
23
return &hashes[middle]
24
} else if hashes[middle].HashCode > m.hash {
0 commit comments