Skip to content

Commit 7650fa5

Browse files
committed
fix wrongly changed m_sinpi
1 parent bb57325 commit 7650fa5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Modules/mathmodule.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ raised for division by zero and mod by zero.
7373

7474
#include "clinic/mathmodule.c.h"
7575

76+
#undef HAVE_ACOSPI
77+
#undef HAVE_ASINPI
78+
#undef HAVE_ATANPI
79+
#undef HAVE_ATAN2PI
80+
#undef HAVE_COSPI
81+
#undef HAVE_SINPI
82+
#undef HAVE_TANPI
83+
7684
/*[clinic input]
7785
module math
7886
[clinic start generated code]*/
@@ -669,7 +677,7 @@ m_lgamma(double x)
669677
r += (absx - 0.5) * (log(absx + lanczos_g - 0.5) - 1);
670678
if (x < 0.0)
671679
/* Use reflection formula to get value for negative x. */
672-
r = logpi - log(fabs(sinpi(absx))) - log(absx) - r;
680+
r = logpi - log(fabs(m_sinpi(absx))) - log(absx) - r;
673681
if (isinf(r))
674682
errno = ERANGE;
675683
return r;

0 commit comments

Comments
 (0)