Skip to content

Commit

Permalink
fix: ReadSleb128 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0rr3sp3dr0 authored Dec 5, 2024
1 parent 688e64e commit daaf987
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ func ReadSleb128(r *bytes.Reader) (int64, error) {

// If high order bit is 1.
if (b & 0x80) == 0 {
break
}
if (shift < 64) && ((b & 0x40) > 0) {
result |= -(1 << shift)
}

if (shift < 64) && ((b & 0x40) > 0) {
result |= -(1 << shift)
break
}
}

Expand Down

0 comments on commit daaf987

Please sign in to comment.