From ac5f22ca55c59c732ac71f7c256fa21cf2cf349a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 3 Nov 2007 19:03:58 +0100 Subject: [PATCH] src/fft.c: fix norm computation when HAVE_COMPLEX_H is undefined --- src/fft.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fft.c b/src/fft.c index 5cbc4780..e5c1a037 100644 --- a/src/fft.c +++ b/src/fft.c @@ -120,9 +120,9 @@ void aubio_fft_getspectrum(fft_data_t * spectrum, smpl_t *norm, smpl_t * phas, u void aubio_fft_getnorm(smpl_t * norm, fft_data_t * spectrum, uint_t size) { uint_t i; - norm[0] = SQR(spectrum[0]); - for (i=1;i