aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown2014-09-07 11:06:20 +0200
committerunknown2014-09-07 11:06:20 +0200
commitab742d7308b3e3887b2f4665a7fc7dbd3eb80462 (patch)
tree28838fcea656d1c8306c8cd440405c0bd63b30f6
parent5c8129a1ddcb682695e25f83e3da2286d85e15aa (diff)
downloadscummvm-rg350-ab742d7308b3e3887b2f4665a7fc7dbd3eb80462.tar.gz
scummvm-rg350-ab742d7308b3e3887b2f4665a7fc7dbd3eb80462.tar.bz2
scummvm-rg350-ab742d7308b3e3887b2f4665a7fc7dbd3eb80462.zip
SWORD1: Silence some GCC warnings.
Signed/unsigned comparison.
-rw-r--r--engines/sword1/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp
index fbe14aae27..9aed66b461 100644
--- a/engines/sword1/sound.cpp
+++ b/engines/sword1/sound.cpp
@@ -133,7 +133,7 @@ void Sound::checkSpeechFileEndianness() {
if (data) {
uint32 max_cpt = size > 2000 ? 2000 : size;
double le_diff_sum = 0.;
- int le_cpt = 0;
+ uint32 le_cpt = 0;
for (uint32 i = 1; i < size && le_cpt < max_cpt; ++i) {
if (data[i] != data[i-1]) {
le_diff_sum += fabs((double)(data[i] - data[i - 1]));
@@ -146,7 +146,7 @@ void Sound::checkSpeechFileEndianness() {
data = uncompressSpeech(index + _cowHeaderSize, sampleSize, &size);
if (data) {
double be_diff_sum = 0.;
- int be_cpt = 0;
+ uint32 be_cpt = 0;
for (uint32 i = 1; i < size && be_cpt < le_cpt; ++i) {
if (data[i] != data[i-1]) {
be_diff_sum += fabs((double)(data[i] - data[i - 1]));