Skip to content

Commit

Permalink
arm: relative branch should not be negative. bug reported by @acez
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Sep 23, 2014
1 parent a4da895 commit 4e87675
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/ARM/ARMInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,7 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
else
SStream_concat(O, "#%u", imm);
} else {
if (imm < -HEX_THRESHOLD)
SStream_concat(O, "#-0x%x", -imm);
else
SStream_concat(O, "#-%u", -imm);
SStream_concat(O, "#0x%x", imm);
}
} else if (imm >= 0) {
if (imm > HEX_THRESHOLD)
Expand Down

0 comments on commit 4e87675

Please sign in to comment.