aboutsummaryrefslogtreecommitdiff
path: root/engines/sky
diff options
context:
space:
mode:
authorJonathan Gray2006-04-12 10:01:41 +0000
committerJonathan Gray2006-04-12 10:01:41 +0000
commiteb3ae7d7260f1cd2319e605e4b054d004733228c (patch)
tree195b8779841dae3513ced4ece726de87d9453e04 /engines/sky
parentadbafccc64fba8f314a302042b78c2a36a61619f (diff)
downloadscummvm-rg350-eb3ae7d7260f1cd2319e605e4b054d004733228c.tar.gz
scummvm-rg350-eb3ae7d7260f1cd2319e605e4b054d004733228c.tar.bz2
scummvm-rg350-eb3ae7d7260f1cd2319e605e4b054d004733228c.zip
sizeof(void *) != sizeof(int) for a large number of systems.
Fix a lot of debug/error statements that were using %d/%x for the result of pointer arithmetic. As C++ apparently has no format string for ptrdiff_t use %lu/%lx as appropriate. svn-id: r21824
Diffstat (limited to 'engines/sky')
-rw-r--r--engines/sky/control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp
index d5cdadd09f..8ab76e647c 100644
--- a/engines/sky/control.cpp
+++ b/engines/sky/control.cpp
@@ -1421,7 +1421,7 @@ uint16 Control::parseSaveData(uint8 *srcBuf) {
_skyCompact->fetchCpt(cnt)->status = 0;
if (srcPos - srcBuf != (int32)size)
- error("Restore failed! Savegame data = %d bytes. Expected size: %d", srcPos-srcBuf, size);
+ error("Restore failed! Savegame data = %lu bytes. Expected size: %d", srcPos-srcBuf, size);
_skyDisk->refreshFilesList(reloadList);
SkyEngine::_systemVars.currentMusic = (uint16)music;