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 mio
parent dccba3f445
commit d0d0b697e6
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

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