From 9c52c600c45059e1b85f2660de2de96fffbc05cc Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Thu, 2 Feb 2023 15:22:13 -0800 Subject: [PATCH] =?UTF-8?q?EXI=5FDeviceEthernet:=20Fix=20warning:=20operat?= =?UTF-8?q?ion=20on=20=E2=80=98current=5Frwp=E2=80=99=20may=20be=20undefin?= =?UTF-8?q?ed=20[-Wsequence-point]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Core/Core/HW/EXI/EXI_DeviceEthernet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/EXI/EXI_DeviceEthernet.cpp b/Source/Core/Core/HW/EXI/EXI_DeviceEthernet.cpp index 25463b5416..cdb8beffc3 100644 --- a/Source/Core/Core/HW/EXI/EXI_DeviceEthernet.cpp +++ b/Source/Core/Core/HW/EXI/EXI_DeviceEthernet.cpp @@ -578,7 +578,7 @@ bool CEXIETHERNET::RecvHandlePacket() off = 0; // avoid increasing the BBA register while copying // sometime the OS can try to process when it's not completed - current_rwp = current_rwp == page_ptr(BBA_RHBP) ? page_ptr(BBA_BP) : ++current_rwp; + current_rwp = current_rwp == page_ptr(BBA_RHBP) ? page_ptr(BBA_BP) : current_rwp + 1; write_ptr = &mBbaMem[current_rwp << 8]; @@ -604,7 +604,7 @@ bool CEXIETHERNET::RecvHandlePacket() // Align up to next page if ((mRecvBufferLength + 4) % 256) - current_rwp = current_rwp == page_ptr(BBA_RHBP) ? page_ptr(BBA_BP) : ++current_rwp; + current_rwp = current_rwp == page_ptr(BBA_RHBP) ? page_ptr(BBA_BP) : current_rwp + 1; #ifdef BBA_TRACK_PAGE_PTRS INFO_LOG_FMT(SP1, "{:x} {:x} {:x} {:x}", page_ptr(BBA_BP), page_ptr(BBA_RRP), page_ptr(BBA_RWP),