[Scummvm-cvs-logs] SF.net SVN: scummvm: [21257] scummvm/trunk/engines/lure/hotspots.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Mon Mar 13 03:41:08 CET 2006


Revision: 21257
Author:   dreammaster
Date:     2006-03-13 03:40:40 -0800 (Mon, 13 Mar 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21257&view=rev

Log Message:
-----------
Fix to remove warning on validating frame offsets in animation decoder

Modified Paths:
--------------
    scummvm/trunk/engines/lure/hotspots.cpp
Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2006-03-13 11:33:17 UTC (rev 21256)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2006-03-13 11:40:40 UTC (rev 21257)
@@ -175,7 +175,7 @@
 		if ((newRecord->flags & PIXELFLAG_HAS_TABLE) != 0) {
 			// For animations with an offset table, set the source point for each frame
 			uint16 frameOffset = *((uint16 *) (src->data() + ((frameCtr + 1) * sizeof(uint16)))) + 0x40;
-			if (frameOffset + _height * (_width / 2) > dest->size()) 
+			if ((uint32) frameOffset + _height * (_width / 2) > dest->size()) 
 				error("Invalid frame offset in animation %x", newRecord->animRecordId);
 			pSrc = dest->data() + frameOffset;
 		}


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