From 1aeb1c8f3e2c3801959f4f9de0132e7ae0a02515 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Thu, 2 Feb 2012 15:57:42 -0600 Subject: [PATCH] Fix warning about operation order. --- apu/hermite_resampler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apu/hermite_resampler.h b/apu/hermite_resampler.h index e3fdbb36..3c872da0 100644 --- a/apu/hermite_resampler.h +++ b/apu/hermite_resampler.h @@ -34,10 +34,10 @@ class HermiteResampler : public Resampler a2 = mu3 - mu2; a3 = 3 * mu2 - (mu3 << 1); - return (a0 * b) + + return ((a0 * b) + ((a1 * m0) >> 15) + ((a2 * m1) >> 15) + - (a3 * c) >> 15; + (a3 * c)) >> 15; } public: