diff options
Diffstat (limited to 'math/w_tgammal.c')
-rw-r--r-- | math/w_tgammal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/math/w_tgammal.c b/math/w_tgammal.c index b3a9e4a015..50de8cf906 100644 --- a/math/w_tgammal.c +++ b/math/w_tgammal.c @@ -29,7 +29,7 @@ __tgammal(long double x) long double y = __ieee754_gammal_r(x,&local_signgam); if(__glibc_unlikely (!isfinite (y) || y == 0) - && (isfinite (x) || isinf (x) < 0) + && (isfinite (x) || (isinf (x) && x < 0.0)) && _LIB_VERSION != _IEEE_) { if(x==0.0) return __kernel_standard_l(x,x,250); /* tgamma pole */ |