diff --git a/structio.py b/structio.py index 7fb1c6c..03d399e 100644 --- a/structio.py +++ b/structio.py @@ -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'' @@ -287,4 +286,4 @@ def skip_7bint(self): while self.read_int(1) > 127: pass - return self.tell() \ No newline at end of file + return self.tell()