summaryrefslogtreecommitdiff
path: root/log10.c
diff options
context:
space:
mode:
Diffstat (limited to 'log10.c')
-rw-r--r--log10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log10.c b/log10.c
index 861f0ba35..ffa5bc43a 100644
--- a/log10.c
+++ b/log10.c
@@ -127,7 +127,7 @@ mpfr_log10 (mpfr_ptr r, mpfr_srcptr a, mp_rnd_t rnd_mode)
/* log10(10^n) is exact */
if ((MPFR_SIGN(t) > 0) && mpfr_integer_p (t))
- if (mpfr_ui_pow_ui (tt, 10, (unsigned long int) mpfr_get_d1 (t) + 0.5,
+ if (mpfr_ui_pow_ui (tt, 10, (unsigned long) (mpfr_get_d1 (t) + 0.5),
GMP_RNDN) == 0)
if (mpfr_cmp (a, tt) == 0)
ok = 1;