Skip to content

Commit 70151a9

Browse files
authored
Merge pull request #7985 from NlightNFotis/fix_extraneous_parameter_math_c
Remove extraneous `y` parameter from calls to `exp` and `logl`.
2 parents 7f4570b + 4ab2770 commit 70151a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansi-c/library/math.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2623,7 +2623,7 @@ long double expl(long double x)
26232623
return +0.0l;
26242624

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

28232823
#if LDBL_MAX_EXP == DBL_MAX_EXP
2824-
return logl(x, y);
2824+
return logl(x);
28252825
#else
28262826
_Static_assert(
28272827
sizeof(long double) % sizeof(int32_t) == 0,

0 commit comments

Comments
 (0)