aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-04 18:54:27 +0000
committerJohannes Schickel2009-07-04 18:54:27 +0000
commit59aa80b2d27639722d0d38f123bae80ed02ac6b9 (patch)
tree476d14289f0ad33350dd6a3d028f427ecf4085aa /engines/scumm
parent14319442945f67652a9ad757edc3cf1b0c581df2 (diff)
downloadscummvm-rg350-59aa80b2d27639722d0d38f123bae80ed02ac6b9.tar.gz
scummvm-rg350-59aa80b2d27639722d0d38f123bae80ed02ac6b9.tar.bz2
scummvm-rg350-59aa80b2d27639722d0d38f123bae80ed02ac6b9.zip
Fix mismatching format arguments.
svn-id: r42105
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/he/resource_he.cpp2
-rw-r--r--engines/scumm/script.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/resource_he.cpp b/engines/scumm/he/resource_he.cpp
index 022dbc0eb3..ce29bf0319 100644
--- a/engines/scumm/he/resource_he.cpp
+++ b/engines/scumm/he/resource_he.cpp
@@ -474,7 +474,7 @@ bool Win32ResExtractor::check_offset(byte *memory, int total_size, const char *n
int need_size = (int)((byte *)offset - memory + size);
debugC(DEBUG_RESOURCE, "check_offset: size=%x vs %x offset=%x size=%x",
- need_size, total_size, (byte *)offset - memory, size);
+ need_size, total_size, (uint)((byte *)offset - memory), size);
if (need_size < 0 || need_size > total_size) {
error("%s: premature end", name);
diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp
index c70c819b69..78f7fb0453 100644
--- a/engines/scumm/script.cpp
+++ b/engines/scumm/script.cpp
@@ -462,7 +462,7 @@ void ScummEngine::executeScript() {
vm.slot[_currentScript].didexec = true;
debugC(DEBUG_OPCODES, "Script %d, offset 0x%x: [%X] %s()",
vm.slot[_currentScript].number,
- _scriptPointer - _scriptOrgPointer,
+ (uint)(_scriptPointer - _scriptOrgPointer),
_opcode,
getOpcodeDesc(_opcode));
if (_hexdumpScripts == true) {