summaryrefslogtreecommitdiff
path: root/src/matrixOperations/logm/clogma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/matrixOperations/logm/clogma.c')
-rw-r--r--src/matrixOperations/logm/clogma.c4
1 files changed, 2 insertions, 2 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]));