]> hackdaworld.org Git - my-code/api.git/commitdiff
dimension corrected
authorhackbard <hackbard>
Thu, 23 Sep 2004 17:20:51 +0000 (17:20 +0000)
committerhackbard <hackbard>
Thu, 23 Sep 2004 17:20:51 +0000 (17:20 +0000)
fourier/fourier.c

index 255012bfaa232ce68c4738d03ca6afa908164cc9..d6c78f6da3b8ff3b9dede552b24ce06a5bb166c6 100644 (file)
@@ -69,7 +69,7 @@ int fourier_dft_1d(t_fourier *fourier) {
     }
   }
   else {
-    for(dim=1;dim<=fourier->dim;dim++) {
+    for(dim=0;dim<fourier->dim;dim++) {
       for(k=0;k<fourier->data_len[dim];k++) {
         fourier->data[dim][k].r=0;
         fourier->data[dim][k].i=0;