From b7f9b1a5d88a0872ff40d8d540bebd120632eebf Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Tue, 1 Jul 2003 22:51:49 +0000 Subject: fixed warnings svn-id: r8692 --- sky/compacts/savedata.cpp | 3 ++- sky/control.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sky/compacts/savedata.cpp b/sky/compacts/savedata.cpp index 47051e6f0a..fb574e8157 100644 --- a/sky/compacts/savedata.cpp +++ b/sky/compacts/savedata.cpp @@ -976,4 +976,5 @@ uint8 *SkyControl::_saveLoadARs[18] = { SkyCompact::wit_auto, SkyCompact::gal_auto, SkyCompact::ken_auto -}; \ No newline at end of file +}; + diff --git a/sky/control.cpp b/sky/control.cpp index a5c8c0d63d..01e47f64aa 100644 --- a/sky/control.cpp +++ b/sky/control.cpp @@ -1154,7 +1154,7 @@ uint16 SkyControl::parseSaveData(uint8 *srcBuf) { for (cnt = 0; cnt < 13; cnt++) LODSW(srcPos, SkyCompact::high_floor_table[cnt]); - if (srcPos - srcBuf != size) + if (srcPos - srcBuf != (int32)size) error("Restore failed! Savegame data = %d bytes. Expected size: %d.\n", srcPos-srcBuf, size); _skyLogic->fnLeaveSection(oldSection, 0, 0); -- cgit v1.2.3