diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-13 09:33:55 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-02-13 09:33:55 +0000 |
commit | 5e8873f5f0274388f5332951b3a1e03ef2ca7c92 (patch) | |
tree | 581c21acd8c80af7942b13f11a183a699dacde12 /cbrt.c | |
parent | 14ea5598d1293bdc4f493102245c1a86aa0399bf (diff) | |
download | mpfr-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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);*/ |