summaryrefslogtreecommitdiff
path: root/get_z.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-11-19 12:39:10 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-11-19 12:39:10 +0000
commit38c77249c6671159c0c7e40a73f1f5a3bc76dc8e (patch)
treefd12f35cf4b230dfcccf5eaf65a216f3ba0cdca7 /get_z.c
parent68d7536264604dfa93c6540d11fd292e6e14e3ff (diff)
downloadmpfr-38c77249c6671159c0c7e40a73f1f5a3bc76dc8e.tar.gz
Improve coverage tests.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3107 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'get_z.c')
-rw-r--r--get_z.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/get_z.c b/get_z.c
index f53cbaef5..73a211709 100644
--- a/get_z.c
+++ b/get_z.c
@@ -26,7 +26,7 @@ void
mpfr_get_z (mpz_ptr z, mpfr_srcptr f, mp_rnd_t rnd)
{
mpfr_t r;
- mp_exp_t exp = MPFR_EXP(f);
+ mp_exp_t exp = MPFR_EXP (f);
/* if exp <= 0, then |f|<1, thus |o(f)|<=1 */
MPFR_ASSERTD (MPFR_PREC_MIN == 2);
@@ -34,6 +34,7 @@ mpfr_get_z (mpz_ptr z, mpfr_srcptr f, mp_rnd_t rnd)
mpfr_rint (r, f, rnd);
MPFR_ASSERTN (MPFR_IS_FP (r) );
exp = mpfr_get_z_exp (z, r);
+ /* FIXME: It seems that exp < 0 is always true */
if (exp >= 0)
mpz_mul_2exp (z, z, exp);
else