diff options
-rw-r--r-- | Alc/effects/pshifter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/pshifter.c b/Alc/effects/pshifter.c index ee6ca806..4597da6b 100644 --- a/Alc/effects/pshifter.c +++ b/Alc/effects/pshifter.c @@ -309,7 +309,7 @@ static ALvoid ALpshifterState_process(ALpshifterState *state, ALsizei SamplesToD /* Map delta phase into +/- Pi interval */ j = fastf2i(tmp / F_PI); - tmp -= F_PI * (ALfloat)(j + (j&1)); + tmp -= F_PI * (ALfloat)(j + (j%2)); /* Get deviation from bin frequency from the +/- Pi interval */ tmp /= expected; |