summaryrefslogtreecommitdiff
path: root/set.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-13 11:30:05 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-13 11:30:05 +0000
commit2ad2125c3aebbdeb8d6c3da12c653bb02fc507bb (patch)
treea90e3d1c86efb3bdc75522da84618c1e6a9f1673 /set.c
parent69febd2bb6843718a242f0ac95468822bd47e104 (diff)
downloadmpfr-2ad2125c3aebbdeb8d6c3da12c653bb02fc507bb.tar.gz
Add test for mpfr_cmpabs
Add test for mpfr_fits_ Add test for internal dumping functions. Improve coverage test for exceptions / set / check. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2701 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set.c')
-rw-r--r--set.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/set.c b/set.c
index bee7e4b3a..c8549e13d 100644
--- a/set.c
+++ b/set.c
@@ -40,14 +40,12 @@ mpfr_set4 (mpfr_ptr a, mpfr_srcptr b, mp_rnd_t rnd_mode, int signb)
MPFR_SET_INF(a);
inex = 0;
}
- else if (MPFR_IS_ZERO(b))
+ else
{
+ MPFR_ASSERTD(MPFR_IS_ZERO(b));
MPFR_SET_ZERO(a);
inex = 0;
}
- else
- /* Should never reach this code */
- MPFR_ASSERTN(0);
}
else if (MPFR_LIKELY(MPFR_PREC(b) == MPFR_PREC(a)))
{