mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-27 23:40:25 +00:00
ppc: wrong comparison in printOperand(). bug found by Coverity
This commit is contained in:
parent
ea16de9ba4
commit
2c20a1b5a3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user