From 7c420765a9d32d9b9a624fd45ddbd6d1d96b5fa6 Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 24 Apr 2010 14:28:16 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20"suggest=20parentheses=20around=20compari?= =?UTF-8?q?son=20in=20operand=20of=20=E2=80=98&=E2=80=99"=20warnings.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desmume/src/arm_instructions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/arm_instructions.cpp b/desmume/src/arm_instructions.cpp index 9c9837467..bc18fd84d 100644 --- a/desmume/src/arm_instructions.cpp +++ b/desmume/src/arm_instructions.cpp @@ -1022,7 +1022,7 @@ TEMPLATE static u32 FASTCALL OP_ADD_S_IMM_VAL(const u32 i) } \ cpu->CPSR.bits.N = BIT31(cpu->R[REG_POS(i,12)]); \ cpu->CPSR.bits.Z = (cpu->R[REG_POS(i,12)]==0); \ - cpu->CPSR.bits.V = (v ^ shift_op ^ -1) & (v ^ cpu->R[REG_POS(i, 12)]) != 0;\ + cpu->CPSR.bits.V = ((v ^ shift_op ^ -1) & (v ^ cpu->R[REG_POS(i, 12)])) != 0;\ return a; \ }