From 879e2ac0a540fa1b199e20d47830aa5eea484a4c Mon Sep 17 00:00:00 2001
From: cornet
Date: Wed, 22 Apr 2009 05:54:43 +0000
Subject: build with visual studio (dynamic libraries)

---
 src/matrixOperations/determ/zdeterma.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/matrixOperations/determ/zdeterma.c')

diff --git a/src/matrixOperations/determ/zdeterma.c b/src/matrixOperations/determ/zdeterma.c
index a1d8b879..ea7e98d0 100644
--- a/src/matrixOperations/determ/zdeterma.c
+++ b/src/matrixOperations/determ/zdeterma.c
@@ -10,7 +10,7 @@
  *
  */
 
-
+#include <stdlib.h>
 #ifndef WITHOUT_LAPACK
 #include "lapack.h"
 #else
@@ -58,11 +58,11 @@ doubleComplex zdeterma(doubleComplex * in, int size){
 			 
 		default : 
 			  /*Allocate inCopy and Copy in in inCopy*/
-			  inCopy=malloc((uint)(size*size)*sizeof(doubleComplex));
+			  inCopy=(doubleComplex*)malloc((unsigned int)(size*size)*sizeof(doubleComplex));
 			  for (i=0;i<size*size;i++) inCopy[i]=in[i];
 			  
 			  /*Calculation of determinant*/
-			  vectPivot = malloc((uint)size*sizeof(int));
+			  vectPivot = (int*)malloc((unsigned int)size*sizeof(int));
 			  zgetrf_ ( &size, &size, inCopy, &size, vectPivot, &info);
 			  
 			  out=DoubleComplex(1,0);
@@ -112,7 +112,7 @@ doubleComplex zdeterma(doubleComplex * in, int size){
 			 
 		default : 
 				  /*Copy the input matrix*/
-			  inCopy=malloc((uint)(size*size)*sizeof(doubleComplex));
+			  inCopy=malloc((unsigned int)(size*size)*sizeof(doubleComplex));
 			  for (i=0;i<size*size;i++) inCopy[i]=in[i];
 			  
     			  for (i=0;i<size;i++){
-- 
cgit