summaryrefslogtreecommitdiff
path: root/src/matrixOperations/logm
diff options
context:
space:
mode:
authorcornet2009-04-22 05:54:43 +0000
committercornet2009-04-22 05:54:43 +0000
commit879e2ac0a540fa1b199e20d47830aa5eea484a4c (patch)
tree69ef4242aa8ce27332dec2a27f4e7f10a6f9e8fb /src/matrixOperations/logm
parent1811fe5588d0cfbb788ab8f477800af3f45dd710 (diff)
downloadscilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.tar.gz
scilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.tar.bz2
scilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.zip
build with visual studio (dynamic libraries)
Diffstat (limited to 'src/matrixOperations/logm')
-rw-r--r--src/matrixOperations/logm/clogma.c4
-rw-r--r--src/matrixOperations/logm/dlogma.c4
-rw-r--r--src/matrixOperations/logm/slogma.c4
-rw-r--r--src/matrixOperations/logm/zlogma.c6
4 files changed, 9 insertions, 9 deletions
diff --git a/src/matrixOperations/logm/clogma.c b/src/matrixOperations/logm/clogma.c
index c4e69d44..a5e253fb 100644
--- a/src/matrixOperations/logm/clogma.c
+++ b/src/matrixOperations/logm/clogma.c
@@ -19,8 +19,8 @@ void clogma (floatComplex* in, int rows, floatComplex* out){
doubleComplex *inCopy, *outCopy;
int i=0;
- inCopy = malloc((uint)(rows*rows)*sizeof(doubleComplex));
- outCopy = malloc((uint)(rows*rows)*sizeof(doubleComplex));
+ inCopy = (doubleComplex *)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
+ outCopy = (doubleComplex *)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
for(i=0;i<rows*rows;i++)
inCopy[i]=DoubleComplex ((double)creals(in[i]), (double)cimags(in[i]));
diff --git a/src/matrixOperations/logm/dlogma.c b/src/matrixOperations/logm/dlogma.c
index 8df8ce3a..d38af5d0 100644
--- a/src/matrixOperations/logm/dlogma.c
+++ b/src/matrixOperations/logm/dlogma.c
@@ -18,8 +18,8 @@ void dlogma (double* in, int rows, double* out){
doubleComplex *inCpx,*outCpx;
int i;
- inCpx=malloc((uint)(rows*rows)*sizeof(doubleComplex));
- outCpx=malloc((uint)(rows*rows)*sizeof(doubleComplex));
+ inCpx=(doubleComplex *)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
+ outCpx=(doubleComplex *)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
for (i=0;i<rows*rows;i++) inCpx[i] = DoubleComplex(in[i],0);
diff --git a/src/matrixOperations/logm/slogma.c b/src/matrixOperations/logm/slogma.c
index 928e3802..bffc2dfd 100644
--- a/src/matrixOperations/logm/slogma.c
+++ b/src/matrixOperations/logm/slogma.c
@@ -18,8 +18,8 @@ void slogma (float* in, int rows, float* out){
doubleComplex *inCpx, *outCopy;
int i;
- inCpx=malloc((uint)(rows*rows)*sizeof(doubleComplex));
- outCopy=malloc((uint)(rows*rows)*sizeof(doubleComplex));
+ inCpx=(doubleComplex *)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
+ outCopy=(doubleComplex *)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
for (i=0;i<rows*rows;i++) inCpx[i] = DoubleComplex(in[i],0);
diff --git a/src/matrixOperations/logm/zlogma.c b/src/matrixOperations/logm/zlogma.c
index ea0cd4e7..e84a3d4e 100644
--- a/src/matrixOperations/logm/zlogma.c
+++ b/src/matrixOperations/logm/zlogma.c
@@ -36,9 +36,9 @@ void zlogma (doubleComplex* in, int rows, doubleComplex* out){
/* 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));