diff options
author | jofret | 2010-03-23 10:37:56 +0000 |
---|---|---|
committer | jofret | 2010-03-23 10:37:56 +0000 |
commit | 30984c3e2d78676a9138aca4c84ea2124f1074bd (patch) | |
tree | aa73cf3972c188a775a2ef66c811c919fdea7787 /src | |
parent | 57782e92a420c7d86977847c14747d39587814cc (diff) | |
download | scilab2c-30984c3e2d78676a9138aca4c84ea2124f1074bd.tar.gz scilab2c-30984c3e2d78676a9138aca4c84ea2124f1074bd.tar.bz2 scilab2c-30984c3e2d78676a9138aca4c84ea2124f1074bd.zip |
Correct cast
Diffstat (limited to 'src')
-rw-r--r-- | src/c/statisticsFunctions/stdevf/cstdevfsc.c | 3 | ||||
-rw-r--r-- | src/c/statisticsFunctions/stdevf/zstdevfdz.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/c/statisticsFunctions/stdevf/cstdevfsc.c b/src/c/statisticsFunctions/stdevf/cstdevfsc.c index bb4b6210..62104c68 100644 --- a/src/c/statisticsFunctions/stdevf/cstdevfsc.c +++ b/src/c/statisticsFunctions/stdevf/cstdevfsc.c @@ -17,8 +17,7 @@ floatComplex cstdevfsc(float *in1, int lines, int columns, floatComplex* in2) { - float* ZEROS; - ZEROS=malloc((unsigned int)(lines*columns*sizeof(float))); + float* ZEROS = (float *) malloc((unsigned int)(lines*columns*sizeof(float))); szerosa(ZEROS,lines,columns); return cstdevfa(FloatComplexMatrix(in1,ZEROS,lines*columns), lines , columns , in2); diff --git a/src/c/statisticsFunctions/stdevf/zstdevfdz.c b/src/c/statisticsFunctions/stdevf/zstdevfdz.c index 5e731beb..0074a43f 100644 --- a/src/c/statisticsFunctions/stdevf/zstdevfdz.c +++ b/src/c/statisticsFunctions/stdevf/zstdevfdz.c @@ -16,8 +16,7 @@ doubleComplex zstdevfdz(double *in1, int lines, int columns, doubleComplex* in2) { - double* ZEROS; - ZEROS=malloc((unsigned int)(lines*columns*sizeof(double))); + double* ZEROS = (double *) malloc((unsigned int)(lines*columns*sizeof(double))); dzerosa(ZEROS,lines,columns); return zstdevfa(DoubleComplexMatrix(in1,ZEROS,lines*columns), lines,columns , in2); |