diff options
author | jofret | 2009-04-22 06:32:01 +0000 |
---|---|---|
committer | jofret | 2009-04-22 06:32:01 +0000 |
commit | 902321537032347de3faca35770fc6804e54b63c (patch) | |
tree | 8e5cef60c409358a0d9453284d419462c8f5ab99 /src/signalProcessing/fftshift/dfftshifta.c | |
parent | d74b3c662dd8d241b2d91a80c491fc63ed1bad8e (diff) | |
download | scilab2c-902321537032347de3faca35770fc6804e54b63c.tar.gz scilab2c-902321537032347de3faca35770fc6804e54b63c.tar.bz2 scilab2c-902321537032347de3faca35770fc6804e54b63c.zip |
stdlib -> malloc
Diffstat (limited to 'src/signalProcessing/fftshift/dfftshifta.c')
-rw-r--r-- | src/signalProcessing/fftshift/dfftshifta.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/signalProcessing/fftshift/dfftshifta.c b/src/signalProcessing/fftshift/dfftshifta.c index 795dc0d3..cbab193e 100644 --- a/src/signalProcessing/fftshift/dfftshifta.c +++ b/src/signalProcessing/fftshift/dfftshifta.c @@ -10,16 +10,16 @@ * */ - +#include <malloc.h> #include "fftshift.h" -void dfftshifta(double* in,int rows,int columns,double* out){ +void dfftshifta(double* in,int rows,int columns,double* out){ double* temp; - + /*FIXME : malloc here*/ - temp=malloc((uint)(rows*columns)*sizeof(double)); - - drowfftshifta(in,rows,columns,temp); + temp= (double *) malloc((unsigned int)(rows*columns)*sizeof(double)); + + drowfftshifta(in,rows,columns,temp); dcolumnfftshifta(temp,rows,columns,out); } |