python: Fix assertion failure on ctl_flush_tb() (#2023)
This commit is contained in:
committed by
GitHub
parent
0886e53572
commit
26268e69af
@@ -1172,7 +1172,7 @@ class Uc(RegStateManager):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __ctl_encode(ctl: int, op: int, nargs: int) -> int:
|
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})'
|
assert op and check_maxbits(op, 2), f'op must not exceed value of 3 (got {op})'
|
||||||
|
|
||||||
return (op << 30) | (nargs << 26) | ctl
|
return (op << 30) | (nargs << 26) | ctl
|
||||||
|
|||||||
Reference in New Issue
Block a user