diff --git a/Common/FixedSizeQueue.h b/Common/FixedSizeQueue.h index cb86a8c645..37066fe00a 100644 --- a/Common/FixedSizeQueue.h +++ b/Common/FixedSizeQueue.h @@ -201,7 +201,7 @@ public: bool CanPush() { int nextBlock = curWriteBlock + 1; - if (nextBlock == NUM_BLOCKS) nextBlock == 0; + if (nextBlock == NUM_BLOCKS) nextBlock = 0; return nextBlock != curReadBlock; } diff --git a/Core/HLE/__sceAudio.cpp b/Core/HLE/__sceAudio.cpp index a8fa834f3a..778e80df17 100644 --- a/Core/HLE/__sceAudio.cpp +++ b/Core/HLE/__sceAudio.cpp @@ -281,7 +281,7 @@ void __AudioUpdate() { } if (hwBlockSize * 2 > chans[i].sampleQueue.size()) { - ERROR_LOG(HLE, "Channel %i buffer underrun at %i of %i", i, chans[i].sampleQueue.size() / 2, hwBlockSize); + ERROR_LOG(HLE, "Channel %i buffer underrun at %i of %i", i, (int)chans[i].sampleQueue.size() / 2, hwBlockSize); } const s16 *buf1 = 0, *buf2 = 0;