From 06c2976fa08897b6d81eb702b349a343597d02d4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 10 Mar 2007 15:04:06 +0000 Subject: More fixes for MSVC8 warnings. svn-id: r26063 --- backends/saves/compressed/compressed-saves.cpp | 2 +- sound/mixer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/saves/compressed/compressed-saves.cpp b/backends/saves/compressed/compressed-saves.cpp index 82647062a3..14a77e6617 100644 --- a/backends/saves/compressed/compressed-saves.cpp +++ b/backends/saves/compressed/compressed-saves.cpp @@ -125,7 +125,7 @@ public: return _origSize; } void seek(int32 offset, int whence = SEEK_SET) { - int32 newPos; + int32 newPos = 0; switch(whence) { case SEEK_END: newPos = size() - offset; diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 0b9ffe3abe..f2ffc65ae6 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -160,7 +160,7 @@ void Mixer::playRaw( AudioStream *input = makeLinearInputStream((byte *)sound, size, rate, flags, loopStart, loopEnd); // Play it - playInputStream(type, handle, input, id, volume, balance, true, false, (flags & Mixer::FLAG_REVERSE_STEREO)); + playInputStream(type, handle, input, id, volume, balance, true, false, ((flags & Mixer::FLAG_REVERSE_STEREO) != 0)); } void Mixer::playInputStream( -- cgit v1.2.3