Skip to content

Commit

Permalink
Wrap setting of CS_DETAIL_REAL into CS version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 30, 2023
1 parent 2070f2b commit 2daf3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/analysis/p/analysis_arm_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1917,10 +1917,10 @@ static int analysis_op(RzAnalysis *a, RzAnalysisOp *op, ut64 addr, const ut8 *bu
cs_option(ctx->handle, CS_OPT_DETAIL, CS_OPT_ON);
#if CS_NEXT_VERSION >= 6
cs_option(ctx->handle, CS_OPT_SYNTAX, CS_OPT_SYNTAX_CS_REG_ALIAS);
#endif
if (a->bits == 64) {
cs_option(ctx->handle, CS_OPT_DETAIL, CS_OPT_DETAIL_REAL);
}
#endif
if (ret != CS_ERR_OK) {
ctx->handle = 0;
return -1;
Expand Down

0 comments on commit 2daf3ea

Please sign in to comment.