revert commit 5e82b63

This commit is contained in:
dwarning 2026-03-03 08:54:03 +01:00
parent 8639a053a3
commit 6ae057b3ea
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ com_fft(wordlist *wl)
in[j] = tdvec[0][j]*win[j];
/* data have same type and length - so we need only one plan */
plan_forward = fftw_plan_dft_r2c_1d(length-1, in, out, FFTW_ESTIMATE);
plan_forward = fftw_plan_dft_r2c_1d(length, in, out, FFTW_ESTIMATE);
for (i = 0; i<ngood; i++) {

View File

@ -770,7 +770,7 @@ cx_fft(void *data, short int type, int length, int *newlength, short int *newtyp
for (i = 0; i < length; i++)
ind[i] = realdata[i] * win[i];
plan_forward = fftw_plan_dft_r2c_1d(length-1, ind, out, FFTW_ESTIMATE);
plan_forward = fftw_plan_dft_r2c_1d(length, ind, out, FFTW_ESTIMATE);
fftw_execute(plan_forward);