mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
fix compile warnings
This commit is contained in:
parent
318f4cf6dc
commit
70259eec34
|
@ -326,7 +326,7 @@ bool GameLoader::ComputeRegionSize(uint32_t *region_size, const GameLoader::Regi
|
||||||
ErrorLog("File '%s' in '%s' is not sized in %d-byte chunks.", zipped_file->filename.c_str(), zip.zipfilename.c_str(), region->chunk_size);
|
ErrorLog("File '%s' in '%s' is not sized in %d-byte chunks.", zipped_file->filename.c_str(), zip.zipfilename.c_str(), region->chunk_size);
|
||||||
error = true;
|
error = true;
|
||||||
}
|
}
|
||||||
uint32_t num_chunks = zipped_file->uncompressed_size / region->chunk_size;
|
uint32_t num_chunks = (uint32_t)(zipped_file->uncompressed_size / region->chunk_size);
|
||||||
end_addr.push_back(file->offset + region->stride * (num_chunks - 1) + region->chunk_size);
|
end_addr.push_back(file->offset + region->stride * (num_chunks - 1) + region->chunk_size);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -46,7 +46,7 @@ private:
|
||||||
struct ZippedFile
|
struct ZippedFile
|
||||||
{
|
{
|
||||||
std::string filename;
|
std::string filename;
|
||||||
uint64_t uncompressed_size;
|
size_t uncompressed_size;
|
||||||
uint32_t crc32;
|
uint32_t crc32;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue