diff options
author | Chris Robinson <[email protected]> | 2018-10-01 15:59:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-10-01 15:59:05 -0700 |
commit | 052fdd67cdcb7bdade54c20b4595fc390b4d86b1 (patch) | |
tree | 7669a44e895268f3695494173b09bbef364c3f3a /Alc | |
parent | ed8f44d102b6434535683a7e2d32fbac5f775b23 (diff) |
Use < instead of != for some loop checks
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/mastering.c | 4 |
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; |