Skip to content

Commit

Permalink
Fix more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Jan 7, 2025
1 parent dafb65c commit 01c3575
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/bpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 01c3575

Please sign in to comment.