[Scummvm-cvs-logs] scummvm master -> ab742d7308b3e3887b2f4665a7fc7dbd3eb80462

urukgit urukgit at users.noreply.github.com
Sun Sep 7 11:06:53 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
ab742d7308 SWORD1: Silence some GCC warnings.


Commit: ab742d7308b3e3887b2f4665a7fc7dbd3eb80462
    https://github.com/scummvm/scummvm/commit/ab742d7308b3e3887b2f4665a7fc7dbd3eb80462
Author: unknown (koppirnyo at gmail.com)
Date: 2014-09-07T11:06:20+02:00

Commit Message:
SWORD1: Silence some GCC warnings.

Signed/unsigned comparison.

Changed paths:
    engines/sword1/sound.cpp



diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp
index fbe14aa..9aed66b 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]));






More information about the Scummvm-git-logs mailing list