From 0596e11bd544ba264dcb390ebf4b1a3ead051d9e Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 10 May 2014 09:17:48 +0800 Subject: [PATCH] arm64: fix a wrong int type of a local var in printLabelOperand. this bug was introduced when we fixed C89 issue for MSVC --- arch/AArch64/AArch64InstPrinter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/AArch64/AArch64InstPrinter.c b/arch/AArch64/AArch64InstPrinter.c index 97a391a5..8e778e99 100644 --- a/arch/AArch64/AArch64InstPrinter.c +++ b/arch/AArch64/AArch64InstPrinter.c @@ -315,8 +315,9 @@ static void printLabelOperand(MCInst *MI, unsigned OpNum, SStream *O, unsigned field_width, unsigned scale) { MCOperand *MO = MCInst_getOperand(MI, OpNum); - uint64_t UImm = 0, Sign = 0, SImm = 0; - int64_t tmp = 0; + uint64_t UImm, Sign; + int64_t SImm, tmp; + if (!MCOperand_isImm(MO)) { printOperand(MI, OpNum, O); return;