aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-10 11:42:26 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-10 11:42:26 +0000
commitf295d3af79302eb9c6c4e4ef1f02e727333a36ac (patch)
tree721300dc5cea232e791a06f5445263d9c7f3b212
parentfe63e6bf79bd34ac5acc443699cb1ea8b54c06f5 (diff)
fix malloc
-rw-r--r--fft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fft.c b/fft.c
index 46b91d7..923c3fd 100644
--- a/fft.c
+++ b/fft.c
@@ -76,7 +76,7 @@ init_fft(size_t n)
p->n = n;
p->in = fftw_malloc(p->n * sizeof(double));
- p->out = fftw_malloc(p->n * sizeof(double));
+ p->out = fftw_malloc(p->n * sizeof(fftw_complex) / 2);
assert(p->in && p->out);
p->window = hamming(p->n);