summaryrefslogtreecommitdiff
path: root/src/matrixOperations/spec2/sspec2a.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/matrixOperations/spec2/sspec2a.c')
-rw-r--r--src/matrixOperations/spec2/sspec2a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/matrixOperations/spec2/sspec2a.c b/src/matrixOperations/spec2/sspec2a.c
index e168b540..d3ab00d5 100644
--- a/src/matrixOperations/spec2/sspec2a.c
+++ b/src/matrixOperations/spec2/sspec2a.c
@@ -10,7 +10,7 @@
*
*/
-
+#include <stdlib.h>
#include "spec.h"
@@ -23,9 +23,9 @@ void sspec2a(float* in, int rows, float* eigenvalues,float* eigenvectors){
double* dblin;
double *dbleigenvalues,*dbleigenvectors;
- dblin=malloc((uint)(rows*rows)*sizeof(double));
- dbleigenvalues=malloc((uint)(rows*rows)*sizeof(double));
- dbleigenvectors=malloc((uint)(rows*rows)*sizeof(double));
+ dblin=(double*)malloc((unsigned int)(rows*rows)*sizeof(double));
+ dbleigenvalues = (double*)malloc((unsigned int)(rows*rows)*sizeof(double));
+ dbleigenvectors = (double*)malloc((unsigned int)(rows*rows)*sizeof(double));
for (i=0;i<rows*rows;i++) dblin[i]=(double)in[i];