From 464627f0432d6038ee6afd6af632a8a34d1d89d8 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 28 Apr 2014 07:08:23 +0200 Subject: MADS: Fix a couple of warnings --- engines/mads/audio.cpp | 2 +- engines/mads/game_data.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/mads/audio.cpp b/engines/mads/audio.cpp index 0a9637bfcf..1c61e13957 100644 --- a/engines/mads/audio.cpp +++ b/engines/mads/audio.cpp @@ -92,7 +92,7 @@ void AudioPlayer::playSound(int soundIndex, bool loop) { return; } - if (soundIndex < 0 || soundIndex > _dsrEntries.size() - 1) { + if (soundIndex < 0 || soundIndex > (int)_dsrEntries.size() - 1) { warning("Invalid sound index: %i (max %i), not playing sound", soundIndex, _dsrEntries.size() - 1); return; } diff --git a/engines/mads/game_data.cpp b/engines/mads/game_data.cpp index 9211bbfa5a..72137cfa69 100644 --- a/engines/mads/game_data.cpp +++ b/engines/mads/game_data.cpp @@ -47,7 +47,7 @@ bool VisitedScenes::exists(int sceneId) { } void VisitedScenes::synchronize(Common::Serializer &s) { - int count = size(); + uint count = size(); int v = 0; s.syncAsUint16LE(count); -- cgit v1.2.3