Skip to content

Commit

Permalink
negentropy: fix getMinimalBound() to go 2 hex chars each time instead…
Browse files Browse the repository at this point in the history
… of 1.
  • Loading branch information
fiatjaf committed Sep 20, 2024
1 parent 0bcefc8 commit 101031b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nip77/negentropy/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func getMinimalBound(prev, curr Item) Bound {

sharedPrefixBytes := 0

for i := 0; i < 32; i++ {
for i := 0; i < 32; i += 2 {
if curr.ID[i:i+2] != prev.ID[i:i+2] {
break
}
Expand Down

0 comments on commit 101031b

Please sign in to comment.