From 68a7f01a7c3f644ad6adbdb08c0c6459ec6cdfc2 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 15 Nov 2013 19:15:50 -0800 Subject: [PATCH] C++ compatibility --- crap_util_def.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crap_util_def.h b/crap_util_def.h index 9b32c5e..9e5a288 100644 --- a/crap_util_def.h +++ b/crap_util_def.h @@ -64,13 +64,13 @@ biquad_gen(int type, double fc, double gain, double bw, double fs) { double a0r = 1/bqi.a0; - return (biquad) { - .b0 = a0r * bqi.b0, - .b1 = a0r * bqi.b1, - .b2 = a0r * bqi.b2, - .a1 = -a0r * bqi.a1, - .a2 = -a0r * bqi.a2 - }; + biquad out; + out.b0 = a0r*bqi.b0; + out.b1 = a0r*bqi.b1; + out.b2 = a0r*bqi.b2; + out.a1 = -a0r*bqi.a1; + out.a2 = -a0r*bqi.a2; + return out; } static bq_t