aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/indexers/asdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/indexers/asdf.c')
-rw-r--r--libcrystfel/src/indexers/asdf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/indexers/asdf.c b/libcrystfel/src/indexers/asdf.c
index f74b9a4c..2222144b 100644
--- a/libcrystfel/src/indexers/asdf.c
+++ b/libcrystfel/src/indexers/asdf.c
@@ -94,8 +94,8 @@ struct fftw_vars fftw_vars_new()
int N = 1024;
fftw.N = N;
- fftw.in = fftw_malloc(N * sizeof(double));
- fftw.out = fftw_malloc(N * sizeof(fftw_complex));
+ fftw.in = fftw_alloc_real(N);
+ fftw.out = fftw_alloc_complex(N);
fftw.p = fftw_plan_dft_r2c_1d(N, fftw.in, fftw.out, FFTW_MEASURE);
return fftw;