From b0217f6ebdff6aeb18f282f7b2025c6b25d9f583 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 16 May 2015 09:25:29 +0800 Subject: [PATCH] ppc: fix an warning on comparison of unsigned int --- arch/PowerPC/PPCInstPrinter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/PowerPC/PPCInstPrinter.c b/arch/PowerPC/PPCInstPrinter.c index dcba431e..752826a1 100644 --- a/arch/PowerPC/PPCInstPrinter.c +++ b/arch/PowerPC/PPCInstPrinter.c @@ -711,7 +711,7 @@ static void printOperand(MCInst *MI, unsigned OpNo, SStream *O) } if (MCOperand_isImm(Op)) { - uint64_t imm = MCOperand_getImm(Op); + int64_t imm = MCOperand_getImm(Op); if (imm >= 0) { if (imm > HEX_THRESHOLD) SStream_concat(O, "0x%" PRIx64, imm);