[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.84,1.85

Max Horn fingolfin at users.sourceforge.net
Fri Sep 19 16:22:36 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv22683/backends/sdl

Modified Files:
	sdl-common.cpp 
Log Message:
fixed some pointer cast warnings on systems with 64 bit pointers (like AMD64)

Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- sdl-common.cpp	14 Sep 2003 12:52:37 -0000	1.84
+++ sdl-common.cpp	19 Sep 2003 19:11:33 -0000	1.85
@@ -146,7 +146,7 @@
 
 	StackLock lock(_graphicsMutex, this);	// Lock the mutex until this function ends
 	
-	if (((uint32)buf & 3) == 0 && pitch == _screenWidth && x==0 && y==0 &&
+	if (((long)buf & 3) == 0 && pitch == _screenWidth && x==0 && y==0 &&
 			w==_screenWidth && h==_screenHeight && _mode_flags&DF_WANT_RECT_OPTIM) {
 		/* Special, optimized case for full screen updates.
 		 * It tries to determine what areas were actually changed,
@@ -331,7 +331,7 @@
 #undef ROL
 
 void OSystem_SDL_Common::add_dirty_rgn_auto(const byte *buf) {
-	assert(((uint32)buf & 3) == 0);
+	assert(((long)buf & 3) == 0);
 	
 	/* generate a table of the checksums */
 	mk_checksums(buf);





More information about the Scummvm-git-logs mailing list