SPU2: Fix Wsign-compare warnings.

This commit is contained in:
lightningterror 2023-11-07 14:15:10 +01:00
parent 8d7227b1f9
commit e3d4b0e56a
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ s32 __forceinline ReverbDownsample_reference(V_Core& core, bool right)
int index = (core.RevbSampleBufPos - NUM_TAPS) & 63;
s32 out = 0;
for (int i = 0; i < NUM_TAPS; i++)
for (u32 i = 0; i < NUM_TAPS; i++)
{
out += core.RevbDownBuf[right][index + i] * filter_down_coefs[i];
}
@ -148,7 +148,7 @@ StereoOut32 __forceinline ReverbUpsample_reference(V_Core& core)
int index = (core.RevbSampleBufPos - NUM_TAPS) & 63;
s32 l = 0, r = 0;
for (int i = 0; i < NUM_TAPS; i++)
for (u32 i = 0; i < NUM_TAPS; i++)
{
l += core.RevbUpBuf[0][index + i] * filter_up_coefs[i];
r += core.RevbUpBuf[1][index + i] * filter_up_coefs[i];