summaryrefslogtreecommitdiff
path: root/src/matrixOperations/logm/slogma.c
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/slogma.c
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/slogma.c')
-rw-r--r--src/matrixOperations/logm/slogma.c4
1 files changed, 2 insertions, 2 deletions
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);