diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-11 07:42:05 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-05-11 07:42:05 +0000 |
commit | 1a6e8ff0fc741de44707df5a78c1eed16a60b3a8 (patch) | |
tree | e88b566ec0b6260e068257741bc2d7462d6a14a5 /mul.c | |
parent | 297d69f49e18b69a52a7fbfbc69e18186a0c936a (diff) | |
download | mpfr-1a6e8ff0fc741de44707df5a78c1eed16a60b3a8.tar.gz |
Fix bug due to wrong assertion.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3537 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mul.c')
-rw-r--r-- | mul.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -395,7 +395,9 @@ mpfr_mul (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode) /* We will compute with one extra limb */ n++; p = n*BITS_PER_MP_LIMB - MPFR_INT_CEIL_LOG2 (n + 2); - MPFR_ASSERTD (MPFR_PREC (a) <= p - 5); + /* Due to some nasty reasons we can have only 4 bits */ + MPFR_ASSERTD (MPFR_PREC (a) <= p - 4); + if (MPFR_LIKELY (k < 2*n)) { tmp = TMP_ALLOC (2*n*sizeof (mp_limb_t)); |