diff options
author | Torbjörn Andersson | 2016-11-28 06:42:47 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2016-11-28 06:42:47 +0100 |
commit | 75e2770fae899fe5087fe7b711d636157cb9b980 (patch) | |
tree | 423cc6ac38863bd788087cfe510cfdafb305014f /engines/fullpipe/stateloader.cpp | |
parent | 2a0ff4fb39379d4d9f75b4bd12d7702ea074ed05 (diff) | |
download | scummvm-rg350-75e2770fae899fe5087fe7b711d636157cb9b980.tar.gz scummvm-rg350-75e2770fae899fe5087fe7b711d636157cb9b980.tar.bz2 scummvm-rg350-75e2770fae899fe5087fe7b711d636157cb9b980.zip |
FULLPIPE: Silence GCC warnings (mostly signed/unsigned ones)
Diffstat (limited to 'engines/fullpipe/stateloader.cpp')
-rw-r--r-- | engines/fullpipe/stateloader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp index f48d636ecd..4861699f7e 100644 --- a/engines/fullpipe/stateloader.cpp +++ b/engines/fullpipe/stateloader.cpp @@ -77,7 +77,7 @@ bool GameLoader::readSavegame(const char *fname) { delete saveFile; // Deobfuscate the data - for (uint i = 0; i < header.encSize; i++) + for (int i = 0; i < header.encSize; i++) data[i] -= i & 0x7f; MfcArchive *archive = new MfcArchive(new Common::MemoryReadStream(data, header.encSize)); @@ -100,7 +100,7 @@ bool GameLoader::readSavegame(const char *fname) { getGameLoaderInventory()->loadPartial(*archive); - int32 arrSize = archive->readUint32LE(); + uint32 arrSize = archive->readUint32LE(); debugC(3, kDebugLoading, "Reading %d infos", arrSize); @@ -113,7 +113,7 @@ bool GameLoader::readSavegame(const char *fname) { free(_sc2array[i]._picAniInfos); _sc2array[i]._picAniInfos = (PicAniInfo **)malloc(sizeof(PicAniInfo *) * _sc2array[i]._picAniInfosCount); - for (uint j = 0; j < _sc2array[i]._picAniInfosCount; j++) { + for (int j = 0; j < _sc2array[i]._picAniInfosCount; j++) { _sc2array[i]._picAniInfos[j] = new PicAniInfo(); _sc2array[i]._picAniInfos[j]->load(*archive); } @@ -196,7 +196,7 @@ bool readSavegameHeader(Common::InSaveFile *in, FullpipeSavegameHeader &header) in->seek(-4, SEEK_END); - uint headerOffset = in->readUint32LE(); + int headerOffset = in->readUint32LE(); // Sanity check if (headerOffset >= in->pos() || headerOffset == 0) { |