Skip to content

Commit

Permalink
SPU2: Fix Wsign-compare warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningterror committed Nov 8, 2023
1 parent 8d7227b commit e3d4b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcsx2/SPU2/ReverbResample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit e3d4b0e

Please sign in to comment.