Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingeringwillx authored Dec 21, 2024
1 parent c28238f commit 2a74fce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions structio.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ def unpack_7bint(self, b, start=0):
byte = b[start + i]

number += byte << (7 * i)
length = i + 1

return number, length
return number, i + 1

def pack_7bint(self, number):
b = b''
Expand Down Expand Up @@ -287,4 +286,4 @@ def skip_7bint(self):
while self.read_int(1) > 127:
pass

return self.tell()
return self.tell()

0 comments on commit 2a74fce

Please sign in to comment.