From 1a660f3772f8e7e4a64bd669b723736defd32bc4 Mon Sep 17 00:00:00 2001 From: jofret Date: Tue, 21 Apr 2009 06:32:37 +0000 Subject: Windows compiler requires thos cast. --- src/type/doubleComplex.c | 2 +- src/type/floatComplex.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/type/doubleComplex.c b/src/type/doubleComplex.c index 11df36a6..6b8d5b4f 100644 --- a/src/type/doubleComplex.c +++ b/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/src/type/floatComplex.c b/src/type/floatComplex.c index 1e4b16cc..a3cac507 100644 --- a/src/type/floatComplex.c +++ b/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) -- cgit