summaryrefslogtreecommitdiff
path: root/Build/source/libs/mpfr/mpfr-src/src/gamma.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/gamma.c')
-rw-r--r--Build/source/libs/mpfr/mpfr-src/src/gamma.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/gamma.c b/Build/source/libs/mpfr/mpfr-src/src/gamma.c
index e9e8e042ea8..861bb0dfaaa 100644
--- a/Build/source/libs/mpfr/mpfr-src/src/gamma.c
+++ b/Build/source/libs/mpfr/mpfr-src/src/gamma.c
@@ -1,6 +1,6 @@
/* mpfr_gamma -- gamma function
-Copyright 2001-2019 Free Software Foundation, Inc.
+Copyright 2001-2020 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
This file is part of the GNU MPFR Library.
@@ -138,6 +138,8 @@ mpfr_gamma (mpfr_ptr gamma, mpfr_srcptr x, mpfr_rnd_t rnd_mode)
{
if (MPFR_IS_NEG (x))
{
+ /* gamma(x) has a pole at negative integers, thus even if it goes to zero
+ for other values, we return NaN */
MPFR_SET_NAN (gamma);
MPFR_RET_NAN;
}