aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mastering.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-10-01 15:59:05 -0700
committerChris Robinson <[email protected]>2018-10-01 15:59:05 -0700
commit052fdd67cdcb7bdade54c20b4595fc390b4d86b1 (patch)
tree7669a44e895268f3695494173b09bbef364c3f3a /Alc/mastering.c
parented8f44d102b6434535683a7e2d32fbac5f775b23 (diff)
Use < instead of != for some loop checks
Diffstat (limited to 'Alc/mastering.c')
-rw-r--r--Alc/mastering.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mastering.c b/Alc/mastering.c
index 637cd8d2..e1bc4ae7 100644
--- a/Alc/mastering.c
+++ b/Alc/mastering.c
@@ -127,11 +127,11 @@ static void ShiftSlidingHold(SlidingHold *Hold, const ALsizei n)
if(lowerIndex < i)
{
- for(;i != BUFFERSIZE;i++)
+ for(;i < BUFFERSIZE;i++)
expiries[i] -= n;
i = 0;
}
- for(;i != lowerIndex;i++)
+ for(;i < lowerIndex;i++)
expiries[i] -= n;
expiries[i] -= n;