add fix in CLICodedToken parsing
This commit is contained in:
parent
d09a75fd93
commit
e1731d048c
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue