arm: another fix for #446. bug reported by @uxmal
This commit is contained in:
parent
f938424349
commit
763ac62498
|
@ -1056,10 +1056,10 @@ static void printAM3PreOrOffsetIndexOp(MCInst *MI, unsigned Op, SStream *O,
|
|||
|
||||
if (MI->csh->detail) {
|
||||
if (!sign) {
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = (int)ImmOffs;
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = -(int)ImmOffs;
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].subtracted = true;
|
||||
} else
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = -(int)ImmOffs;
|
||||
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.disp = (int)ImmOffs;
|
||||
}
|
||||
|
||||
SStream_concat0(O, "]");
|
||||
|
|
Loading…
Reference in New Issue