Skip to content

Commit a6233dc

Browse files
authored
fix(core): fix semantics issue (#569)
1 parent aece765 commit a6233dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/apps/polkadot/codec/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def process_compact_bytes(self):
2121
elif byte_mod == 2:
2222
self.compact_length = 4
2323
else:
24-
self.compact_length = int(5 + (compact_byte[0] - 3) >> 2)
24+
self.compact_length = int(5 + ((compact_byte[0] - 3) >> 2))
2525

2626
if self.compact_length == 1:
2727
self.compact_bytes = compact_byte

0 commit comments

Comments
 (0)