mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
fix some gcc warnings
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2590 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -131,6 +131,8 @@ CBannerLoaderGC::GetName(std::string _rName[])
|
||||
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return returnCode;
|
||||
@ -196,6 +198,8 @@ CBannerLoaderGC::GetDescription(std::string* _rDescription)
|
||||
returnCode = true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return returnCode;
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ bool SectorReader::Read(u64 offset, u64 size, u8* out_ptr)
|
||||
while (remain > 0)
|
||||
{
|
||||
// Check if we are ready to do a large block read. > instead of >= so we don't bother if remain is only one block.
|
||||
if (positionInBlock == 0 && remain > m_blocksize)
|
||||
if (positionInBlock == 0 && remain > (u64)m_blocksize)
|
||||
{
|
||||
u64 num_blocks = remain / m_blocksize;
|
||||
ReadMultipleAlignedBlocks(block, num_blocks, out_ptr);
|
||||
@ -110,7 +110,7 @@ bool SectorReader::Read(u64 offset, u64 size, u8* out_ptr)
|
||||
|
||||
bool SectorReader::ReadMultipleAlignedBlocks(u64 block_num, u64 num_blocks, u8 *out_ptr)
|
||||
{
|
||||
for (int i = 0; i < num_blocks; i++)
|
||||
for (u64 i = 0; i < num_blocks; i++)
|
||||
{
|
||||
const u8 *data = GetBlockData(block_num + i);
|
||||
if (!data)
|
||||
|
@ -100,9 +100,9 @@ namespace DiscIO
|
||||
|
||||
void DriveReader::GetBlock(u64 block_num, u8 *out_ptr)
|
||||
{
|
||||
u32 NotUsed;
|
||||
u8 * lpSector = new u8[m_blocksize];
|
||||
#ifdef _WIN32
|
||||
u32 NotUsed;
|
||||
u64 offset = m_blocksize * block_num;
|
||||
LONG off_low = (LONG)offset & 0xFFFFFFFF;
|
||||
LONG off_high = (LONG)(offset >> 32);
|
||||
|
@ -76,4 +76,5 @@ private:
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user