diff options
-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) { |