From efbf261e972bc06183133057671c26e147c1c18f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 29 Dec 2016 10:10:33 -0500 Subject: [PATCH] DSPAnalyzer: Fix two clang warnings about sign mismatched types --- Source/Core/Core/DSP/DSPAnalyzer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/DSP/DSPAnalyzer.cpp b/Source/Core/Core/DSP/DSPAnalyzer.cpp index 50ab837c14..e810fdf88e 100644 --- a/Source/Core/Core/DSP/DSPAnalyzer.cpp +++ b/Source/Core/Core/DSP/DSPAnalyzer.cpp @@ -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(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; } }