diff --git a/bindings/python/capstone/__init__.py b/bindings/python/capstone/__init__.py index 7be9447253..5be462da18 100755 --- a/bindings/python/capstone/__init__.py +++ b/bindings/python/capstone/__init__.py @@ -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: