Skip to content

Commit fe060fc

Browse files
author
John Chadwick
committed
Remove get_bits case for invalid double colon
1 parent 3e91efd commit fe060fc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

protovalidate/internal/extra_func.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,6 @@ def get_bits(self) -> int:
548548

549549
# Handle double colon, fill pieces with 0
550550
if self._double_colon_seen:
551-
if len(p16) >= 7:
552-
return 0
553551
while len(p16) < 8:
554552
# Delete 0 entries at pos, insert a 0
555553
p16.insert(self._double_colon_at, 0x00000000)

0 commit comments

Comments
 (0)