[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.24,1.25

Max Horn fingolfin at users.sourceforge.net
Sun May 5 11:11:03 CEST 2002


Update of /cvsroot/scummvm/scummvm/simon
In directory usw-pr-cvs1:/tmp/cvs-serv10198/simon

Modified Files:
	simon.cpp 
Log Message:
fixed some warnings

Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- simon.cpp	4 May 2002 09:55:10 -0000	1.24
+++ simon.cpp	5 May 2002 18:10:29 -0000	1.25
@@ -6529,8 +6529,8 @@
 		if (!p)
 			continue;
 		for(j=0; READ_BE_UINT16_UNALIGNED(&p[0]) != 999; j++,p+=2) { /* 0xE703 = byteswapped 999 */
-			x_diff = abs(READ_BE_UINT16_UNALIGNED(&p[0]) - x);
-			y_diff = abs(READ_BE_UINT16_UNALIGNED(&p[1]) - 12 - y);
+			x_diff = abs((int)(READ_BE_UINT16_UNALIGNED(&p[0]) - x));
+			y_diff = abs((int)(READ_BE_UINT16_UNALIGNED(&p[1]) - 12 - y));
 
 			if (x_diff < y_diff) {
 				x_diff >>= 2;





More information about the Scummvm-git-logs mailing list