diff options
author | Strangerke | 2014-04-28 07:08:23 +0200 |
---|---|---|
committer | Strangerke | 2014-04-28 07:08:23 +0200 |
commit | 464627f0432d6038ee6afd6af632a8a34d1d89d8 (patch) | |
tree | a29ab6e8b949d8407296dfe1d89ae8475abbb402 /engines/mads | |
parent | 5bb66bdd5b2adc0c11da235ddcf02966f38c4411 (diff) | |
download | scummvm-rg350-464627f0432d6038ee6afd6af632a8a34d1d89d8.tar.gz scummvm-rg350-464627f0432d6038ee6afd6af632a8a34d1d89d8.tar.bz2 scummvm-rg350-464627f0432d6038ee6afd6af632a8a34d1d89d8.zip |
MADS: Fix a couple of warnings
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/audio.cpp | 2 | ||||
-rw-r--r-- | 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); |