add fix in CLICodedToken parsing

This commit is contained in:
Shiz 2020-06-02 00:56:59 +02:00
parent d09a75fd93
commit e1731d048c
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class CLICodedToken(Type):
size = 4
val = int.from_bytes(input.read(size), 'little')
row = val >> table_bits
tag = val & (1 << (table_bits - 1))
tag = val & ((1 << table_bits) - 1)
return CLIToken(row=row, table=self.types[tag])
class CLISectionReference(Struct):