Skip to content

Commit

Permalink
fix path iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Jun 10, 2024
1 parent 384e7be commit d7ebe60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path_iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (i *PathIterator[T]) Next() ([]byte, T, bool) {
}
case node48:
n48 := currentNode.(*Node48[T])
for itr := int(n48.getNumChildren()) - 1; itr >= 0; itr-- {
for itr := 255; itr >= 0; itr-- {
idx := n48.keys[itr]
if idx == 0 {
continue
Expand Down

0 comments on commit d7ebe60

Please sign in to comment.