Browse Source

bring the KLU_malloc() in right order, ticket #717

pre-master-46
dwarning 1 year ago
committed by Holger Vogt
parent
commit
54865ed39d
  1. 2
      src/maths/KLU/klu_analyze_given.c
  2. 2
      src/maths/KLU/klu_factor.c

2
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 */

2
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 */

Loading…
Cancel
Save