Warning fixes.

This commit is contained in:
Unknown W. Brackets 2014-11-03 08:34:34 -08:00
parent 9d86d3ca9b
commit 61c21340fb
2 changed files with 4 additions and 4 deletions

View File

@ -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());

View File

@ -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;
}