diff --git a/src/maths/KLU/klu_analyze_given.c b/src/maths/KLU/klu_analyze_given.c index f38e1f8ee..3529ede97 100644 --- a/src/maths/KLU/klu_analyze_given.c +++ b/src/maths/KLU/klu_analyze_given.c @@ -102,7 +102,7 @@ KLU_symbolic *KLU_alloc_symbolic /* allocate the Symbolic object */ /* ---------------------------------------------------------------------- */ - Symbolic = KLU_malloc (sizeof (KLU_symbolic), 1, Common) ; + Symbolic = KLU_malloc (1, sizeof (KLU_symbolic), Common) ; if (Common->status < KLU_OK) { /* out of memory */ diff --git a/src/maths/KLU/klu_factor.c b/src/maths/KLU/klu_factor.c index f27dc9182..5f71b5d76 100644 --- a/src/maths/KLU/klu_factor.c +++ b/src/maths/KLU/klu_factor.c @@ -447,7 +447,7 @@ KLU_numeric *KLU_factor /* returns NULL if error, or a valid n1 = ((size_t) n) + 1 ; nzoff1 = ((size_t) nzoff) + 1 ; - Numeric = KLU_malloc (sizeof (KLU_numeric), 1, Common) ; + Numeric = KLU_malloc (1, sizeof (KLU_numeric), Common) ; if (Common->status < KLU_OK) { /* out of memory */