[Scummvm-cvs-logs] CVS: scummvm/scumm debug.cpp,1.6,1.7

Max Horn fingolfin at users.sourceforge.net
Tue Nov 5 14:37:02 CET 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv30235

Modified Files:
	debug.cpp 
Log Message:
don't use non-portable hack to swap ints, it's so much easier using SWAP

Index: debug.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/debug.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- debug.cpp	2 Nov 2002 23:46:04 -0000	1.6
+++ debug.cpp	5 Nov 2002 22:36:05 -0000	1.7
@@ -390,7 +390,7 @@
 	byte *ptr;
 
 	if (x2 < x1)
-		x2 ^= x1 ^= x2 ^= x1;				// Swap x2 and x1
+		SWAP(x2, x1);
 
 	ptr = getBasePtr(scumm, x1, y);
 





More information about the Scummvm-git-logs mailing list