diff options
author | Jonathan Gray | 2006-04-12 10:01:41 +0000 |
---|---|---|
committer | Jonathan Gray | 2006-04-12 10:01:41 +0000 |
commit | eb3ae7d7260f1cd2319e605e4b054d004733228c (patch) | |
tree | 195b8779841dae3513ced4ece726de87d9453e04 /engines/sky | |
parent | adbafccc64fba8f314a302042b78c2a36a61619f (diff) | |
download | scummvm-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.cpp | 2 |
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; |