mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 01:00:01 +00:00
Warning fixes.
This commit is contained in:
parent
9d86d3ca9b
commit
61c21340fb
@ -309,7 +309,7 @@ bool CISOFileBlockDevice::ReadBlock(int blockNumber, u8 *outPtr)
|
||||
return false;
|
||||
}
|
||||
z.avail_in = readSize;
|
||||
z.next_out = frameSize == GetBlockSize() ? outPtr : zlibBuffer;
|
||||
z.next_out = frameSize == (u32)GetBlockSize() ? outPtr : zlibBuffer;
|
||||
z.avail_out = frameSize;
|
||||
z.next_in = readBuffer;
|
||||
|
||||
@ -330,7 +330,7 @@ bool CISOFileBlockDevice::ReadBlock(int blockNumber, u8 *outPtr)
|
||||
}
|
||||
inflateEnd(&z);
|
||||
|
||||
if (frameSize != GetBlockSize())
|
||||
if (frameSize != (u32)GetBlockSize())
|
||||
{
|
||||
zlibBufferFrame = frameNumber;
|
||||
memcpy(outPtr, zlibBuffer + compressedOffset, GetBlockSize());
|
||||
|
@ -222,12 +222,12 @@ void JitBlockCache::RemoveBlockMap(int block_num) {
|
||||
|
||||
const u32 pAddr = b.originalAddress & 0x1FFFFFFF;
|
||||
auto it = block_map_.find(std::make_pair(pAddr + 4 * b.originalSize, pAddr));
|
||||
if (it != block_map_.end() && it->second == block_num) {
|
||||
if (it != block_map_.end() && it->second == (u32)block_num) {
|
||||
block_map_.erase(it);
|
||||
} else {
|
||||
// It wasn't in there, or it has the wrong key. Let's search...
|
||||
for (auto it = block_map_.begin(); it != block_map_.end(); ++it) {
|
||||
if (it->second == block_num) {
|
||||
if (it->second == (u32)block_num) {
|
||||
block_map_.erase(it);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user