[Scummvm-cvs-logs] SF.net SVN: scummvm: [31897] scummvm/trunk/engines/made

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Tue May 6 17:08:48 CEST 2008


Revision: 31897
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31897&view=rev
Author:   drmccoy
Date:     2008-05-06 08:08:48 -0700 (Tue, 06 May 2008)

Log Message:
-----------
Silencing two signess compiler warnings

Modified Paths:
--------------
    scummvm/trunk/engines/made/script.cpp
    scummvm/trunk/engines/made/scriptfuncs.h

Modified: scummvm/trunk/engines/made/script.cpp
===================================================================
--- scummvm/trunk/engines/made/script.cpp	2008-05-06 12:08:31 UTC (rev 31896)
+++ scummvm/trunk/engines/made/script.cpp	2008-05-06 15:08:48 UTC (rev 31897)
@@ -203,7 +203,7 @@
 	while (!_terminated) {
 		byte opcode = readByte();
 		if (opcode >= 1 && opcode <= _commandsMax) {
-			debug(4, "[%04X:%04X] opcode = %s", _runningScriptObjectIndex, _codeIp - _codeBase, _commands[opcode - 1].desc);
+			debug(4, "[%04X:%04X] opcode = %s", _runningScriptObjectIndex, (uint) (_codeIp - _codeBase), _commands[opcode - 1].desc);
 			(this->*_commands[opcode - 1].proc)();
 		} else {
 			warning("ScriptInterpreter::runScript(%d) Unknown opcode %02X", _runningScriptObjectIndex, opcode);

Modified: scummvm/trunk/engines/made/scriptfuncs.h
===================================================================
--- scummvm/trunk/engines/made/scriptfuncs.h	2008-05-06 12:08:31 UTC (rev 31896)
+++ scummvm/trunk/engines/made/scriptfuncs.h	2008-05-06 15:08:48 UTC (rev 31897)
@@ -41,7 +41,7 @@
 public:
 	ScriptFunctions(MadeEngine *vm) : _vm(vm) {}
 	virtual ~ScriptFunctions() {
-		for (int i = 0; i < _externalFuncs.size(); ++i)
+		for (uint i = 0; i < _externalFuncs.size(); ++i)
 			delete _externalFuncs[i];
 	}
 	int16 callFunction(uint16 index, int16 argc, int16 *argv)  {


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