From ea759d7b68c63bef66d98ed181268aea8f250c81 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Wed, 28 Jul 2021 21:48:39 +0200 Subject: [PATCH] microVU: Clean up a few warnings. --- pcsx2/x86/microVU_Compile.inl | 2 +- pcsx2/x86/microVU_Misc.inl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/x86/microVU_Compile.inl b/pcsx2/x86/microVU_Compile.inl index e78cb75cd0..8d34a5207e 100644 --- a/pcsx2/x86/microVU_Compile.inl +++ b/pcsx2/x86/microVU_Compile.inl @@ -44,7 +44,7 @@ __fi void mVUcheckIsSame(mV) { // Sets up microProgram PC ranges based on whats been recompiled void mVUsetupRange(microVU& mVU, s32 pc, bool isStartPC) { std::deque*& ranges = mVUcurProg.ranges; - pxAssertDev(pc <= mVU.microMemSize, pxsFmt("microVU%d: PC outside of VU memory PC=0x%04x", mVU.index, pc)); + pxAssertDev(pc <= (s64)mVU.microMemSize, pxsFmt("microVU%d: PC outside of VU memory PC=0x%04x", mVU.index, pc)); if (isStartPC) { // Check if startPC is already within a block we've recompiled std::deque::const_iterator it(ranges->begin()); for ( ; it != ranges->end(); ++it) { diff --git a/pcsx2/x86/microVU_Misc.inl b/pcsx2/x86/microVU_Misc.inl index c7596230b0..d0cf7245b2 100644 --- a/pcsx2/x86/microVU_Misc.inl +++ b/pcsx2/x86/microVU_Misc.inl @@ -187,7 +187,7 @@ static void __fc mVUTBit() { } static void __fc mVUEBit() { - u32 old = vu1Thread.mtvuInterrupts.fetch_or(VU_Thread::InterruptFlagVUEBit, std::memory_order_release); + vu1Thread.mtvuInterrupts.fetch_or(VU_Thread::InterruptFlagVUEBit, std::memory_order_release); } static inline u32 branchAddrN(const mV)