summaryrefslogtreecommitdiff
path: root/src/gamma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamma.c')
-rw-r--r--src/gamma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gamma.c b/src/gamma.c
index cd60041f0..a346f8b1b 100644
--- a/src/gamma.c
+++ b/src/gamma.c
@@ -296,7 +296,7 @@ mpfr_gamma (mpfr_ptr gamma, mpfr_srcptr x, mpfr_rnd_t rnd_mode)
/* we want an upper bound for x * [log(2-x)-1].
since x < 0, we need a lower bound on log(2-x) */
mpfr_ui_sub (xp, 2, x, MPFR_RNDD);
- mpfr_log2 (xp, xp, MPFR_RNDD);
+ mpfr_log (xp, xp, MPFR_RNDD);
mpfr_sub_ui (xp, xp, 1, MPFR_RNDD);
mpfr_mul (xp, xp, x, MPFR_RNDU);