From: hackbard Date: Thu, 23 Sep 2004 17:20:51 +0000 (+0000) Subject: dimension corrected X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=aff0084d64900249bcefe16e8a13bf28125134a4;p=my-code%2Fapi.git dimension corrected --- diff --git a/fourier/fourier.c b/fourier/fourier.c index 255012b..d6c78f6 100644 --- a/fourier/fourier.c +++ b/fourier/fourier.c @@ -69,7 +69,7 @@ int fourier_dft_1d(t_fourier *fourier) { } } else { - for(dim=1;dim<=fourier->dim;dim++) { + for(dim=0;dimdim;dim++) { for(k=0;kdata_len[dim];k++) { fourier->data[dim][k].r=0; fourier->data[dim][k].i=0;