Skip to content

Commit

Permalink
fix a bug in matchR
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Nov 14, 2024
1 parent 59005f5 commit 6ffdd61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radix/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ masterLoop:
matched, child, parent = true, base, parentNode
return
}
// not matched, fallback to return false, false, nil, nil
// not matched, break and match the rest part by looping base.children
break masterLoop
} else if !dstEnd {
// sub-comparing loop here,
for ; srcMatchedL < l && dstMatchedL < wl; srcMatchedL++ {
Expand Down

0 comments on commit 6ffdd61

Please sign in to comment.