[Scummvm-cvs-logs] SF.net SVN: scummvm:[48901] tools/trunk/engines/sci/compress_sci.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Mon May 3 13:14:25 CEST 2010


Revision: 48901
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48901&view=rev
Author:   fingolfin
Date:     2010-05-03 11:14:25 +0000 (Mon, 03 May 2010)

Log Message:
-----------
TOOLS: Fix warning about comparing (un)signed values

Modified Paths:
--------------
    tools/trunk/engines/sci/compress_sci.cpp

Modified: tools/trunk/engines/sci/compress_sci.cpp
===================================================================
--- tools/trunk/engines/sci/compress_sci.cpp	2010-05-03 11:14:10 UTC (rev 48900)
+++ tools/trunk/engines/sci/compress_sci.cpp	2010-05-03 11:14:25 UTC (rev 48901)
@@ -108,7 +108,7 @@
 	if (!_inputOffset)
 		error("Input file doesn't seem to be a valid sci audio resource file");
 
-	int searchForward = 0;
+	uint32 searchForward = 0;
 	bool noSignature = false;
 	if (memcmp(buffer, "\x8e\x00", 2) == 0) {
 		// sync resource, we expect SOL audio with a resourceid afterwards
@@ -128,7 +128,7 @@
 	uint32 syncPos = 0;
 	_input.read_throwsOnError(&syncBuffer, searchForward);
 	while (true) {
-		if (syncPos == (searchForward - 5)) {
+		if (syncPos + 5 == searchForward) {
 			if (noSignature)
 				error("no SOL audio after possible raw lipsync data at %lx", originalOffset);
 			else


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list