Merge pull request #4580 from lioncash/warn
DSPAnalyzer: Fix two clang warnings about sign mismatched types
This commit is contained in:
commit
f499145da3
|
@ -128,23 +128,23 @@ void AnalyzeRange(u16 start_addr, u16 end_addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next, we'll scan for potential idle skips.
|
// 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++)
|
for (u16 addr = start_addr; addr < end_addr; addr++)
|
||||||
{
|
{
|
||||||
bool found = false;
|
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)
|
if (idle_skip_sigs[s][i] == 0)
|
||||||
found = true;
|
found = true;
|
||||||
if (idle_skip_sigs[s][i] == 0xFFFF)
|
if (idle_skip_sigs[s][i] == 0xFFFF)
|
||||||
continue;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
if (found)
|
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;
|
code_flags[addr] |= CODE_IDLE_SKIP;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue