diff options
Diffstat (limited to 'util/protolib.py')
-rw-r--r-- | util/protolib.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/protolib.py b/util/protolib.py index 47ac8768f..c8c6d0c49 100644 --- a/util/protolib.py +++ b/util/protolib.py @@ -123,10 +123,10 @@ def DecodeVarint(in_file): result |= ~mask else: result &= mask - return (result, pos) - shift += 7 - if shift >= 64: - raise IOError('Too many bytes when decoding varint.') + return (result, pos) + shift += 7 + if shift >= 64: + raise IOError('Too many bytes when decoding varint.') def decodeMessage(in_file, message): """ |