[Scummvm-cvs-logs] SF.net SVN: scummvm:[50685] scummvm/trunk/engines/saga/font.h

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Mon Jul 5 18:08:43 CEST 2010


Revision: 50685
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50685&view=rev
Author:   fingolfin
Date:     2010-07-05 16:08:43 +0000 (Mon, 05 Jul 2010)

Log Message:
-----------
SAGA: Fix warning on systems where enum's are unsigned

Modified Paths:
--------------
    scummvm/trunk/engines/saga/font.h

Modified: scummvm/trunk/engines/saga/font.h
===================================================================
--- scummvm/trunk/engines/saga/font.h	2010-07-05 15:53:17 UTC (rev 50684)
+++ scummvm/trunk/engines/saga/font.h	2010-07-05 16:08:43 UTC (rev 50685)
@@ -190,7 +190,7 @@
 		 }
 	 }
 	 bool valid(FontId fontId) {
-		 return ((fontId >= 0) && (fontId < _loadedFonts));
+		 return (fontId < _loadedFonts);
 	 }
 	 int getByteLen(int numBits) const {
 		 int byteLength = numBits / 8;


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