DSPAnalyzer: Fix two clang warnings about sign mismatched types
This commit is contained in:
parent
15759c457d
commit
efbf261e97
|
@ -128,23 +128,23 @@ void AnalyzeRange(u16 start_addr, u16 end_addr)
|
|||
}
|
||||
|
||||
// Next, we'll scan for potential idle skips.
|
||||
for (int s = 0; s < NUM_IDLE_SIGS; s++)
|
||||
for (size_t s = 0; s < NUM_IDLE_SIGS; s++)
|
||||
{
|
||||
for (u16 addr = start_addr; addr < end_addr; addr++)
|
||||
{
|
||||
bool found = false;
|
||||
for (int i = 0; i < MAX_IDLE_SIG_SIZE + 1; i++)
|
||||
for (size_t i = 0; i < MAX_IDLE_SIG_SIZE + 1; i++)
|
||||
{
|
||||
if (idle_skip_sigs[s][i] == 0)
|
||||
found = true;
|
||||
if (idle_skip_sigs[s][i] == 0xFFFF)
|
||||
continue;
|
||||
if (idle_skip_sigs[s][i] != dsp_imem_read(addr + i))
|
||||
if (idle_skip_sigs[s][i] != dsp_imem_read(static_cast<u16>(addr + i)))
|
||||
break;
|
||||
}
|
||||
if (found)
|
||||
{
|
||||
INFO_LOG(DSPLLE, "Idle skip location found at %02x (sigNum:%d)", addr, s + 1);
|
||||
INFO_LOG(DSPLLE, "Idle skip location found at %02x (sigNum:%zu)", addr, s + 1);
|
||||
code_flags[addr] |= CODE_IDLE_SKIP;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue