From ab518977ec168a1d79d4efdf1981555f4477c280 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 30 Jan 2020 21:25:50 +1000 Subject: [PATCH] Remove unnecessary casts. --- research/ma_lpf.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/research/ma_lpf.h b/research/ma_lpf.h index 69c4ae69..4d92e49c 100644 --- a/research/ma_lpf.h +++ b/research/ma_lpf.h @@ -361,12 +361,12 @@ static MA_INLINE ma_biquad_config ma_lpf__get_biquad_config(const ma_lpf_config* c = cos(w); a = s / (2*q); - bqConfig.a0 = (double)( 1 + a); - bqConfig.a1 = (double)(-2 * c); - bqConfig.a2 = (double)( 1 - a); - bqConfig.b0 = (double)((1 - c) / 2); - bqConfig.b1 = (double)( 1 - c); - bqConfig.b2 = (double)((1 - c) / 2); + bqConfig.a0 = 1 + a; + bqConfig.a1 = -2 * c; + bqConfig.a2 = 1 - a; + bqConfig.b0 = (1 - c) / 2; + bqConfig.b1 = 1 - c; + bqConfig.b2 = (1 - c) / 2; bqConfig.format = pConfig->format; bqConfig.channels = pConfig->channels;