Skip to content

Commit

Permalink
Fix option setup of CS_OPT_DETAIL_REAL
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Sep 6, 2024
1 parent 6379dab commit d38f52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/capstone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,8 +1082,8 @@ def option(self, opt_type, opt_value):
status = _cs.cs_option(self.csh, opt_type, opt_value)
if status != CS_ERR_OK:
raise CsError(status)
if opt_type == CS_OPT_DETAIL:
self._detail = opt_value == CS_OPT_ON
if opt_type == CS_OPT_DETAIL or opt_type == CS_OPT_DETAIL_REAL:
self._detail = (opt_value & CS_OPT_ON) != 0
elif opt_type == CS_OPT_SKIPDATA:
self._skipdata = opt_value == CS_OPT_ON
elif opt_type == CS_OPT_UNSIGNED:
Expand Down

0 comments on commit d38f52e

Please sign in to comment.