diff options
author | Joost Peters | 2003-07-01 22:51:49 +0000 |
---|---|---|
committer | Joost Peters | 2003-07-01 22:51:49 +0000 |
commit | b7f9b1a5d88a0872ff40d8d540bebd120632eebf (patch) | |
tree | a30e18241180f022fc6adb4545e3ec4f316a1fda | |
parent | 665ab4a8d9bcc5c4176351f208958449d0907b63 (diff) | |
download | scummvm-rg350-b7f9b1a5d88a0872ff40d8d540bebd120632eebf.tar.gz scummvm-rg350-b7f9b1a5d88a0872ff40d8d540bebd120632eebf.tar.bz2 scummvm-rg350-b7f9b1a5d88a0872ff40d8d540bebd120632eebf.zip |
fixed warnings
svn-id: r8692
-rw-r--r-- | sky/compacts/savedata.cpp | 3 | ||||
-rw-r--r-- | 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); |