From 866acfb508888004186c0802db6a80283c6a09ee Mon Sep 17 00:00:00 2001 From: Cameron Thomas Date: Thu, 27 Oct 2016 10:35:02 +0100 Subject: fixed IFFT on Windows * fixed bug on line 547-548 * memsets now clear the latter half of the array properly --- libs/fft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/fft.cpp b/libs/fft.cpp index 85a7aa9..4332d88 100644 --- a/libs/fft.cpp +++ b/libs/fft.cpp @@ -544,8 +544,8 @@ void fft::inversePowerSpectrum(int start, float *finalOut, float *window, float } /* zero negative frequencies */ - memset(in_real+half, half, 0.0); - memset(in_img+half, half, 0.0); + memset(in_real+half, 0, sizeof(float) * half); + memset(in_img+half, 0, sizeof(float) * half); FFT(n, 1, in_real, in_img, out_real, out_img); // second parameter indicates inverse transform -- cgit v1.3