summaryrefslogtreecommitdiff
path: root/cbrt.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-13 09:33:55 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2004-02-13 09:33:55 +0000
commit5e8873f5f0274388f5332951b3a1e03ef2ca7c92 (patch)
tree581c21acd8c80af7942b13f11a183a699dacde12 /cbrt.c
parent14ea5598d1293bdc4f493102245c1a86aa0399bf (diff)
downloadmpfr-5e8873f5f0274388f5332951b3a1e03ef2ca7c92.tar.gz
improved coverage test
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2698 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'cbrt.c')
-rw-r--r--cbrt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cbrt.c b/cbrt.c
index 10f94e951..56278f404 100644
--- a/cbrt.c
+++ b/cbrt.c
@@ -67,14 +67,13 @@ mpfr_cbrt (mpfr_ptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
return 0;
}
/* case 0: cbrt(+/- 0) = +/- 0 */
- else if (MPFR_IS_ZERO(x))
+ else /* x is necessaryly 0 */
{
+ MPFR_ASSERTD(MPFR_IS_ZERO(x));
MPFR_SET_ZERO(y);
MPFR_SET_SAME_SIGN (y, x);
return 0;
}
- else
- MPFR_ASSERTN(0);
}
/* Useless due to mpz_init
MPFR_CLEAR_FLAGS(y);*/