From bfb9b2fd6d18e3b47776bb32f6ce79d07f10f3f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 19 Jun 2013 15:05:19 +0200 Subject: [PATCH] Warning fix --- Common/FixedSizeQueue.h | 2 +- Core/HLE/__sceAudio.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;