diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-01-15 09:52:33 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-01-15 09:52:33 +0000 |
commit | 5cff5a70a10cc293249e585ccf4d3c891312b9ba (patch) | |
tree | cb66d8d4e4905232bc35ecce14022f9754b49113 /src/log_ui.c | |
parent | a2e0e00bf35bccd1df6cda2d02ad648564f84d98 (diff) | |
download | mpfr-5cff5a70a10cc293249e585ccf4d3c891312b9ba.tar.gz |
[src/log_ui.c] Added a FIXME (integer overflow for large n).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9811 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/log_ui.c')
-rw-r--r-- | src/log_ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log_ui.c b/src/log_ui.c index 270fd65b3..7651dfdb0 100644 --- a/src/log_ui.c +++ b/src/log_ui.c @@ -110,7 +110,7 @@ mpfr_log_ui (mpfr_ptr x, unsigned long n, mpfr_rnd_t rnd_mode) k = __gmpfr_ceil_log2 (3.0 * (double) n) - 2; /* k >= 2 */ /* the reduced argument is n/2^k - 1 = (n-2^k)/2^k */ - p = (long) n - (1L << k); + p = (long) n - (1L << k); /* FIXME: integer overflow for large n */ MPFR_TMP_MARK(marker); w = MPFR_PREC(x) + 10; |