summaryrefslogtreecommitdiff
path: root/src/matrixOperations/powm/zpowma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/matrixOperations/powm/zpowma.c')
-rw-r--r--src/matrixOperations/powm/zpowma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/matrixOperations/powm/zpowma.c b/src/matrixOperations/powm/zpowma.c
index 2def5f40..b9ccc7cc 100644
--- a/src/matrixOperations/powm/zpowma.c
+++ b/src/matrixOperations/powm/zpowma.c
@@ -9,7 +9,7 @@
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
*/
-
+#include <malloc.h>
#include "matrixPow.h"
#include "spec.h"
#include "pow.h"
@@ -24,9 +24,9 @@ void zpowma(doubleComplex* in, int rows, doubleComplex power, doubleComplex* out
doubleComplex *eigenvalues,*eigenvectors,*tmp;
/* Data initialization */
- eigenvalues = malloc((uint)(rows*rows)*sizeof(doubleComplex));
- eigenvectors = malloc((uint)(rows*rows)*sizeof(doubleComplex));
- tmp = malloc((uint)(rows*rows)*sizeof(doubleComplex));
+ eigenvalues = (doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
+ eigenvectors = (doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
+ tmp = (doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
/* hermitian test*/
for(i=0;i<rows;i++) {