[Scummvm-cvs-logs] SF.net SVN: scummvm:[35414] scummvm/trunk/engines/tinsel/graphics.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Wed Dec 17 20:25:55 CET 2008


Revision: 35414
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35414&view=rev
Author:   wjpalenstijn
Date:     2008-12-17 19:25:54 +0000 (Wed, 17 Dec 2008)

Log Message:
-----------
move necessary code outside of assert

Modified Paths:
--------------
    scummvm/trunk/engines/tinsel/graphics.cpp

Modified: scummvm/trunk/engines/tinsel/graphics.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/graphics.cpp	2008-12-17 16:45:53 UTC (rev 35413)
+++ scummvm/trunk/engines/tinsel/graphics.cpp	2008-12-17 19:25:54 UTC (rev 35414)
@@ -472,8 +472,10 @@
 
 		if (!eolFlag) {
 			// Assert that the next bytes signal a line end
-			assert((*srcP++ & 0xf) == 0);
-			assert(*srcP++ == 0);
+			uint8 d = *srcP++;
+			assert((d & 0xf) == 0);
+			d = *srcP++;
+			assert(d == 0);
 		}
 
 		if (topClip > 0)


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