diff options
author | Max Horn | 2006-03-08 11:37:25 +0000 |
---|---|---|
committer | Max Horn | 2006-03-08 11:37:25 +0000 |
commit | d9a9fac93761a06e78fe7e7091ae5a888c1260f2 (patch) | |
tree | 62da9040abb98b0b49c0ba8a14777f32c6452c4f /engines/sky | |
parent | 14f1337c602a1823d2be26fe5b48bc4722aca681 (diff) | |
download | scummvm-rg350-d9a9fac93761a06e78fe7e7091ae5a888c1260f2.tar.gz scummvm-rg350-d9a9fac93761a06e78fe7e7091ae5a888c1260f2.tar.bz2 scummvm-rg350-d9a9fac93761a06e78fe7e7091ae5a888c1260f2.zip |
Fixed tons of format string warnings for debug/error calls (including several errors where the format string didn't match the number of arguments to the call)
svn-id: r21141
Diffstat (limited to 'engines/sky')
-rw-r--r-- | engines/sky/compact.cpp | 2 | ||||
-rw-r--r-- | engines/sky/debug.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sky/compact.cpp b/engines/sky/compact.cpp index a7d9ee69e6..7807c64f95 100644 --- a/engines/sky/compact.cpp +++ b/engines/sky/compact.cpp @@ -390,7 +390,7 @@ void *SkyCompact::getCompactElem(Compact *cpt, uint16 off) { return ((uint8 *)fetchCpt(cpt->megaSet3.turnTableId) + turnTableOffsets[off]); off -= TURNTABLE_SIZE; - error("Offset %X out of bounds of compact", off + COMPACT_SIZE + 4 * MEGASET_SIZE + 4 * TURNTABLE_SIZE); + error("Offset %X out of bounds of compact", (int)(off + COMPACT_SIZE + 4 * MEGASET_SIZE + 4 * TURNTABLE_SIZE)); } uint8 *SkyCompact::createResetData(uint16 gameVersion) { diff --git a/engines/sky/debug.cpp b/engines/sky/debug.cpp index 05aec03db5..cac1a53aba 100644 --- a/engines/sky/debug.cpp +++ b/engines/sky/debug.cpp @@ -1268,7 +1268,7 @@ void Debug::script(uint32 command, uint16 *scriptData) { debug(6, " %d", READ_LE_UINT16(scriptData + i)); } } - debug(6, ""); + debug(6, " "); // Print an empty line as separator } void Debug::mcode(uint32 mcode, uint32 a, uint32 b, uint32 c) { |