diff options
Diffstat (limited to 'src/signalProcessing/fft/dfft2.c')
-rw-r--r-- | src/signalProcessing/fft/dfft2.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/signalProcessing/fft/dfft2.c b/src/signalProcessing/fft/dfft2.c index 575bfe33..20011c04 100644 --- a/src/signalProcessing/fft/dfft2.c +++ b/src/signalProcessing/fft/dfft2.c @@ -11,16 +11,31 @@ */ #include "fft_internal.h" +#include <stdlib.h> -void dfft2 ( double* a , double* b , int nseg , int n , int nspn , int isn , int ierr, int* iw , int lw ) +void dfft2 ( double* a , double* b , int nseg , int n , int nspn , int isn , int ierr, double* iw , int lw ) { + + /*created to avoid the cast problem */ + int* iIw = (int*) malloc( sizeof (int) * (unsigned int) lw ); + + +/*so these lines are duplicated */ + iIw[0] = 0 ; + iIw[1] = 10 ; + iIw[2] = 10 ; + iIw[3] = lw ; + iIw[4] = 10 ; + iw[0] = 0 ; iw[1] = 10 ; iw[2] = 10 ; iw[3] = lw ; iw[4] = 10 ; - dfftbi ( a , b , nseg , n , nspn , isn , ierr , iw[0], iw[1], iw[2], iw[3], iw[4], iw, iw); + dfftbi ( a , b , nseg , n , nspn , isn , ierr ,iIw[0], iIw[1], iIw[2], iIw[3], iIw[4], iw, iIw); + + return ; } |