diff options
author | Sven Hesse | 2008-05-06 15:08:48 +0000 |
---|---|---|
committer | Sven Hesse | 2008-05-06 15:08:48 +0000 |
commit | 7595f20e33ee709b486de887cacd5e4bdba7a67a (patch) | |
tree | 6440f04b8ba7549afde0ddbbdd2107f5e2adbc0e /engines | |
parent | 9df82055f0dff7c242f889c5d776ad0cca2d5bc8 (diff) | |
download | scummvm-rg350-7595f20e33ee709b486de887cacd5e4bdba7a67a.tar.gz scummvm-rg350-7595f20e33ee709b486de887cacd5e4bdba7a67a.tar.bz2 scummvm-rg350-7595f20e33ee709b486de887cacd5e4bdba7a67a.zip |
Silencing two signess compiler warnings
svn-id: r31897
Diffstat (limited to 'engines')
-rw-r--r-- | engines/made/script.cpp | 2 | ||||
-rw-r--r-- | engines/made/scriptfuncs.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/made/script.cpp b/engines/made/script.cpp index 86bd9f42e4..ba0b61d29b 100644 --- a/engines/made/script.cpp +++ b/engines/made/script.cpp @@ -203,7 +203,7 @@ void ScriptInterpreter::runScript(int16 scriptObjectIndex) { 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); diff --git a/engines/made/scriptfuncs.h b/engines/made/scriptfuncs.h index 77e4b12b2e..14645c6d1b 100644 --- a/engines/made/scriptfuncs.h +++ b/engines/made/scriptfuncs.h @@ -41,7 +41,7 @@ class ScriptFunctions { 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) { |