Skip to content

Commit

Permalink
Use ChildrenCapacity instead of 16
Browse files Browse the repository at this point in the history
Co-authored-by: Eclésio Junior <eclesiomelo.1@gmail.com>
  • Loading branch information
qdm12 and EclesioMeloJunior authored Jun 16, 2022
1 parent 9f7e1e3 commit 9d788fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/trie/node/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func decodeBranch(reader io.Reader, variant byte, partialKeyLength uint16) (
}
}

for i := 0; i < 16; i++ {
for i := 0; i < ChildrenCapacity; i++ {
if (childrenBitmap[i/8]>>(i%8))&1 != 1 {
continue
}
Expand Down

0 comments on commit 9d788fc

Please sign in to comment.