mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Remove unnecessary shadow variables and signed/unsigned comparisons.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6244 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -500,7 +500,7 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
|
||||
js.downcountAmount = 0;
|
||||
if (!Core::g_CoreStartupParameter.bEnableDebugging)
|
||||
{
|
||||
for (unsigned int i = 0; i < size_of_merged_addresses; ++i)
|
||||
for (int i = 0; i < size_of_merged_addresses; ++i)
|
||||
{
|
||||
const u32 address = merged_addresses[i];
|
||||
js.downcountAmount += PatchEngine::GetSpeedhackCycles(address);
|
||||
|
@ -474,7 +474,7 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
|
||||
js.downcountAmount = 0;
|
||||
if (!Core::g_CoreStartupParameter.bEnableDebugging)
|
||||
{
|
||||
for (unsigned int i = 0; i < size_of_merged_addresses; ++i)
|
||||
for (int i = 0; i < size_of_merged_addresses; ++i)
|
||||
{
|
||||
const u32 address = merged_addresses[i];
|
||||
js.downcountAmount += PatchEngine::GetSpeedhackCycles(address);
|
||||
|
@ -361,10 +361,10 @@ u32 Flatten(u32 address, int *realsize, BlockStats *st, BlockRegStats *gpa,
|
||||
if (it != inserted_asm_codes.end())
|
||||
{
|
||||
const std::vector<u32>& codes = it->second;
|
||||
for (std::vector<u32>::const_iterator it = codes.begin(),
|
||||
itEnd = codes.end(); it != itEnd; ++it)
|
||||
for (std::vector<u32>::const_iterator itCur = codes.begin(),
|
||||
itEnd = codes.end(); itCur != itEnd; ++itCur)
|
||||
{
|
||||
cst1_instructions.push(*it);
|
||||
cst1_instructions.push(*itCur);
|
||||
}
|
||||
inst = UGeckoInstruction(cst1_instructions.front());
|
||||
cst1_instructions.pop();
|
||||
|
Reference in New Issue
Block a user