python: Fix assertion failure on ctl_flush_tb() (#2023)
This commit is contained in:
parent
dccba3f445
commit
d0d0b697e6
@ -1172,7 +1172,7 @@ class Uc(RegStateManager):
|
||||
|
||||
@staticmethod
|
||||
def __ctl_encode(ctl: int, op: int, nargs: int) -> int:
|
||||
assert nargs and check_maxbits(nargs, 4), f'nargs must not exceed value of 15 (got {nargs})'
|
||||
assert check_maxbits(nargs, 4), f'nargs must not exceed value of 15 (got {nargs})'
|
||||
assert op and check_maxbits(op, 2), f'op must not exceed value of 3 (got {op})'
|
||||
|
||||
return (op << 30) | (nargs << 26) | ctl
|
||||
|
Loading…
Reference in New Issue
Block a user