From 96a6d8d58f2c6d03324040939cf6f29c836ee060 Mon Sep 17 00:00:00 2001 From: dwarning <> Date: Sun, 1 Dec 2024 09:29:15 +0100 Subject: [PATCH] bring the KLU_malloc() in right order, ticket #717 --- src/maths/KLU/klu_analyze_given.c | 2 +- src/maths/KLU/klu_factor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */