Skip to content

Commit

Permalink
python: Fix assertion failure on ctl_flush_tb() (#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
droe authored Oct 8, 2024
1 parent 0886e53 commit 26268e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/unicorn/unicorn_py3/unicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ def context_restore(self, context: UcContext) -> None:

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

0 comments on commit 26268e6

Please sign in to comment.