diff options
author | jofret | 2009-04-21 06:32:37 +0000 |
---|---|---|
committer | jofret | 2009-04-21 06:32:37 +0000 |
commit | fe248723b3c3d94e7e2a884c95f82ed04220a2f2 (patch) | |
tree | 32c231fc6762b37965e3e7c7e7b3d4ef4355a85a | |
parent | fa3177b8e7ab875fcb34ad32d7ff2d804c70d7be (diff) | |
download | scilab2c-fe248723b3c3d94e7e2a884c95f82ed04220a2f2.tar.gz scilab2c-fe248723b3c3d94e7e2a884c95f82ed04220a2f2.tar.bz2 scilab2c-fe248723b3c3d94e7e2a884c95f82ed04220a2f2.zip |
Windows compiler requires thos cast.
-rw-r--r-- | scilab2c/src/type/doubleComplex.c | 2 | ||||
-rw-r--r-- | scilab2c/src/type/floatComplex.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scilab2c/src/type/doubleComplex.c b/scilab2c/src/type/doubleComplex.c index 11df36a6..6b8d5b4f 100644 --- a/scilab2c/src/type/doubleComplex.c +++ b/scilab2c/src/type/doubleComplex.c @@ -103,7 +103,7 @@ doubleComplex DoubleComplex(double real, double imag) { ** \brief construct a Double Complex Matrix. */ doubleComplex *DoubleComplexMatrix(double* real, double* imag, int size) { - doubleComplex *z = malloc((unsigned int) size * sizeof(doubleComplex)); + doubleComplex *z = (doubleComplex *) malloc((unsigned int) size * sizeof(doubleComplex)); int i = 0; for(i = 0; i < size; ++i) diff --git a/scilab2c/src/type/floatComplex.c b/scilab2c/src/type/floatComplex.c index 1e4b16cc..a3cac507 100644 --- a/scilab2c/src/type/floatComplex.c +++ b/scilab2c/src/type/floatComplex.c @@ -105,7 +105,7 @@ floatComplex FloatComplex(float a, float b) { ** \brief construct a Float Complex Matrix. */ floatComplex *FloatComplexMatrix(float* real, float* imag, int size) { - floatComplex *z = malloc((unsigned int) size * sizeof(floatComplex)); + floatComplex *z = (floatComplex *) malloc((unsigned int) size * sizeof(floatComplex)); int i = 0; for(i = 0; i < size; ++i) |