diff --git a/arch/ARM/ARMInstPrinter.c b/arch/ARM/ARMInstPrinter.c index e67e230c..7f61a98c 100644 --- a/arch/ARM/ARMInstPrinter.c +++ b/arch/ARM/ARMInstPrinter.c @@ -1102,7 +1102,9 @@ static void printAddrMode5Operand(MCInst *MI, unsigned OpNum, SStream *O, SStream_concat(O, ", %s#%s%u%s", markup("")); - MI->flat_insn.arm.operands[MI->flat_insn.arm.op_count].mem.disp = ImmOffs * 4; + if (MI->csh->detail) { + MI->flat_insn.arm.operands[MI->flat_insn.arm.op_count].mem.disp = ImmOffs * 4; + } } SStream_concat(O, "]%s", markup(">"));