Skip to content

Commit

Permalink
arm: update imm in printOperand() to fix error reported by @trufae in…
Browse files Browse the repository at this point in the history
… PR #764
  • Loading branch information
aquynh committed Sep 22, 2016
1 parent d9f96e7 commit 9b5f404
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/ARM/ARMInstPrinter.c
Expand Up @@ -863,7 +863,8 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
address = (uint32_t)MI->address + 8;
}

printUInt32Bang(O, address + imm);
imm = address + imm;
printUInt32Bang(O, imm);
} else {
switch(MI->flat_insn->id) {
default:
Expand Down

1 comment on commit 9b5f404

@trufae
Copy link
Contributor

@trufae trufae commented on 9b5f404 Sep 22, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.