From 01c35755a90680864c5803a29a9e2056171c073e Mon Sep 17 00:00:00 2001 From: "Gonzalo J. Carracedo Carballal" Date: Tue, 7 Jan 2025 17:23:22 +0100 Subject: [PATCH] Fix more warnings --- util/bpe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/bpe.c b/util/bpe.c index a79218a..1ef21bd 100644 --- a/util/bpe.c +++ b/util/bpe.c @@ -89,13 +89,13 @@ SUINLINE SUDOUBLE find_flex(SUDOUBLE x0, const SUDOUBLE *c) { SUDOUBLE xn, reldiff; - SUSCOUNT n =0; + /* SUSCOUNT n =0; */ do { xn = x0 - flex_poly(x0, c) / flex_dpdx(x0, c); - reldiff = SU_ABS(xn - x0) / (SU_ABS(x0) + SU_ABS(xn)); + reldiff = fabs(xn - x0) / (fabs(x0) + fabs(xn)); x0 = xn; - ++n; + /* ++n; */ } while (reldiff > SUCAN_BPE_NEWTON_TOL); return xn;