diff --git a/bindings/python/unicorn/unicorn_py3/unicorn.py b/bindings/python/unicorn/unicorn_py3/unicorn.py index 526f06b097..f576542974 100644 --- a/bindings/python/unicorn/unicorn_py3/unicorn.py +++ b/bindings/python/unicorn/unicorn_py3/unicorn.py @@ -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