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/zfftshifta.c | |
parent | d74b3c662dd8d241b2d91a80c491fc63ed1bad8e (diff) | |
download | scilab2c-902321537032347de3faca35770fc6804e54b63c.tar.gz scilab2c-902321537032347de3faca35770fc6804e54b63c.tar.bz2 scilab2c-902321537032347de3faca35770fc6804e54b63c.zip |
stdlib -> malloc
Diffstat (limited to 'src/signalProcessing/fftshift/zfftshifta.c')
-rw-r--r-- | src/signalProcessing/fftshift/zfftshifta.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/signalProcessing/fftshift/zfftshifta.c b/src/signalProcessing/fftshift/zfftshifta.c index c9b6a4fb..2cabd8cc 100644 --- a/src/signalProcessing/fftshift/zfftshifta.c +++ b/src/signalProcessing/fftshift/zfftshifta.c @@ -10,16 +10,16 @@ * */ - +#include <malloc.h> #include "fftshift.h" -void zfftshifta(doubleComplex* in,int rows,int columns,doubleComplex* out){ +void zfftshifta(doubleComplex* in,int rows,int columns,doubleComplex* out){ doubleComplex* temp; - + /*FIXME : malloc here*/ - temp=malloc((uint)(rows*columns)*sizeof(doubleComplex)); - - zrowfftshifta(in,rows,columns,temp); + temp=(doubleComplex *) malloc((unsigned int)(rows*columns)*sizeof(doubleComplex)); + + zrowfftshifta(in,rows,columns,temp); zcolumnfftshifta(temp,rows,columns,out); } |