Skip to content

Commit

Permalink
Merge pull request #7985 from NlightNFotis/fix_extraneous_parameter_m…
Browse files Browse the repository at this point in the history
…ath_c

Remove extraneous `y` parameter from calls to `exp` and `logl`.
  • Loading branch information
NlightNFotis authored Oct 29, 2023
2 parents 7f4570b + 4ab2770 commit 70151a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansi-c/library/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -2623,7 +2623,7 @@ long double expl(long double x)
return +0.0l;

#if LDBL_MAX_EXP == DBL_MAX_EXP
return exp(x, y);
return exp(x);
#else
// underflow/overflow when the result is not representable in 15 exponent bits
if(x < -16384.0l * M_LN2)
Expand Down Expand Up @@ -2821,7 +2821,7 @@ long double logl(long double x)
}

#if LDBL_MAX_EXP == DBL_MAX_EXP
return logl(x, y);
return logl(x);
#else
_Static_assert(
sizeof(long double) % sizeof(int32_t) == 0,
Expand Down

0 comments on commit 70151a9

Please sign in to comment.