python: Fix assertion failure on ctl_flush_tb() (#2023)

This commit is contained in:
Daniel Roethlisberger
2024-10-08 06:48:05 +02:00
committed by GitHub
parent 0886e53572
commit 26268e69af

View File

@@ -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