From d3c521e0a5e696f674c23927a38b9988cbe3627c Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Mon, 16 Dec 2019 00:41:34 +0800 Subject: [PATCH] MOS65XX: C90 compatibility --- arch/MOS65XX/MOS65XXDisassembler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/MOS65XX/MOS65XXDisassembler.c b/arch/MOS65XX/MOS65XXDisassembler.c index 74297f10f..a324c20ed 100644 --- a/arch/MOS65XX/MOS65XXDisassembler.c +++ b/arch/MOS65XX/MOS65XXDisassembler.c @@ -226,6 +226,7 @@ static void fillDetails(MCInst *MI, struct OpInfo opinfo, int cpu_type) void MOS65XX_printInst(MCInst *MI, struct SStream *O, void *PrinterInfo) { #ifndef CAPSTONE_DIET + unsigned int value; unsigned opcode = MCInst_getOpcode(MI); mos65xx_info *info = (mos65xx_info *)PrinterInfo; @@ -245,7 +246,8 @@ void MOS65XX_printInst(MCInst *MI, struct SStream *O, void *PrinterInfo) default: break; } - unsigned int value = MI->Operands[0].ImmVal; + + value = MI->Operands[0].ImmVal; switch (opinfo.am) { default: