This commit is contained in:
Kovid Goyal 2011-07-19 23:11:03 -06:00
parent 337ba18156
commit 7f5651e0bd

View File

@ -166,7 +166,7 @@ def get_trailing_data(record, extra_data_flags):
if i == 0: if i == 0:
# Only the first two bits are used for the size since there can # Only the first two bits are used for the size since there can
# never be more than 3 trailing multibyte chars # never be more than 3 trailing multibyte chars
sz = ord(record[-1]) & 0b11 sz = (ord(record[-1]) & 0b11) + 1
consumed = 1 consumed = 1
else: else:
sz, consumed = decint(record, forward=False) sz, consumed = decint(record, forward=False)