From 345a538c840bab92cfc6001c83972bcaea138957 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 6 Nov 2015 22:48:00 +0100 Subject: [PATCH] pcsx2: Clarify calculation precedence for '>>' and '?' (cppcheck) --- pcsx2/x86/ix86-32/iR5900MultDiv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/x86/ix86-32/iR5900MultDiv.cpp b/pcsx2/x86/ix86-32/iR5900MultDiv.cpp index 1bf9d86bb2..6d24e85dbf 100644 --- a/pcsx2/x86/ix86-32/iR5900MultDiv.cpp +++ b/pcsx2/x86/ix86-32/iR5900MultDiv.cpp @@ -272,13 +272,13 @@ void recWritebackConstHILO(u64 res, int writed, int upper) if( g_pCurInstInfo->regs[XMMGPR_HI] & testlive ) { if( !upper && (reghi = _allocCheckGPRtoMMX(g_pCurInstInfo, XMMGPR_HI, MODE_WRITE)) >= 0 ) { - MOVQMtoR(reghi, (uptr)recGetImm64(res >> 63 ? -1 : 0, res >> 32)); + MOVQMtoR(reghi, (uptr)recGetImm64((res >> 63) ? -1 : 0, res >> 32)); } else { reghi = _allocCheckGPRtoXMM(g_pCurInstInfo, XMMGPR_HI, MODE_WRITE|MODE_READ); if( reghi >= 0 ) { - u32* ptr = recGetImm64(res >> 63 ? -1 : 0, res >> 32); + u32* ptr = recGetImm64((res >> 63) ? -1 : 0, res >> 32); if( upper ) SSE_MOVHPS_M64_to_XMM(reghi, (uptr)ptr); else SSE_MOVLPS_M64_to_XMM(reghi, (uptr)ptr); }