ppc: wrong comparison in printOperand(). bug found by Coverity

This commit is contained in:
Nguyen Anh Quynh 2014-05-30 17:00:20 +08:00
parent ea16de9ba4
commit 2c20a1b5a3

View File

@ -523,7 +523,7 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
else
SStream_concat(O, "%u", imm);
} else {
if (imm < HEX_THRESHOLD)
if (imm < -HEX_THRESHOLD)
SStream_concat(O, "-0x%x", -imm);
else
SStream_concat(O, "-%u", -imm);