aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-02 21:30:56 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-02 21:30:56 +0000
commitfd673dc0f331731f5c413ab0c3e7899575b6436a (patch)
tree3493a902ef1c68e8524ef47cac6e04d2f209bb2e
parentfaf119671a6507fdfa39f3b907ddda83afea9af0 (diff)
revert fft malloc call
-rw-r--r--fft.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fft.c b/fft.c
index c0827c5..2655d79 100644
--- a/fft.c
+++ b/fft.c
@@ -54,8 +54,8 @@ init_fft(size_t n)
assert(p);
p->n = n;
- p->in = fftw_alloc_real(p->n);
- p->out = fftw_alloc_real(p->n);
+ p->in = fftw_malloc(p->n * sizeof(double));
+ p->out = fftw_malloc(p->n * sizeof(double));
assert(p->in && p->out);
p->window = hamming(p->n);