From fd7881791297224494419dc1a216dc06a9dc9574 Mon Sep 17 00:00:00 2001 From: dwarning Date: Thu, 15 Jun 2023 14:55:35 +0200 Subject: [PATCH] rm NULL pointer casts --- src/maths/sparse/spSMP.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/maths/sparse/spSMP.c b/src/maths/sparse/spSMP.c index 350007787..ba044364f 100644 --- a/src/maths/sparse/spSMP.c +++ b/src/maths/sparse/spSMP.c @@ -197,7 +197,7 @@ int *NumSwaps) { *NumSwaps = 0; spSetComplex( Matrix ); - return spOrderAndFactor( Matrix, (spREAL*)NULL, + return spOrderAndFactor( Matrix, NULL, (spREAL)PivRel, (spREAL)PivTol, YES ); } @@ -211,7 +211,7 @@ double PivTol, double PivRel, double Gmin) { spSetReal( Matrix ); LoadGmin( Matrix, Gmin ); - return spOrderAndFactor( Matrix, (spREAL*)NULL, + return spOrderAndFactor( Matrix, NULL, (spREAL)PivRel, (spREAL)PivTol, YES ); } @@ -262,7 +262,7 @@ double RHS[], double Spare[]) NG_IGNORE(Spare); #if spCOMPLEX - spSolve( Matrix, RHS, RHS, (spREAL*)NULL, (spREAL*)NULL ); + spSolve( Matrix, RHS, RHS, NULL, NULL ); #else spSolve( Matrix, RHS, RHS ); #endif