Skip to content

Commit 9d6c3a5

Browse files
committed
C library: fix logl in case long double == double
We previously ended up with recursion.
1 parent b0f6a50 commit 9d6c3a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansi-c/library/math.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2821,7 +2821,7 @@ long double logl(long double x)
28212821
}
28222822

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

0 commit comments

Comments
 (0)