Skip to content

Commit

Permalink
fix(core): fix semantics issue (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
somebodyLi authored Jul 19, 2024
1 parent aece765 commit a6233dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/apps/polkadot/codec/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def process_compact_bytes(self):
elif byte_mod == 2:
self.compact_length = 4
else:
self.compact_length = int(5 + (compact_byte[0] - 3) >> 2)
self.compact_length = int(5 + ((compact_byte[0] - 3) >> 2))

if self.compact_length == 1:
self.compact_bytes = compact_byte
Expand Down

0 comments on commit a6233dc

Please sign in to comment.