summaryrefslogtreecommitdiff
path: root/add1sp.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-05-04 09:05:00 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-05-04 09:05:00 +0000
commit49cd4d2ada9392701b80437fd7a764e88e9bb8f7 (patch)
tree6cd01bc0cb202775371c932ad0f1bb5ef90e7e25 /add1sp.c
parent72b594083c189387b58a7eb50df35857713eee22 (diff)
downloadmpfr-49cd4d2ada9392701b80437fd7a764e88e9bb8f7.tar.gz
Fix an overflow bug in add1sp.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2887 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'add1sp.c')
-rw-r--r--add1sp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/add1sp.c b/add1sp.c
index 535b37ea3..6d51b55f3 100644
--- a/add1sp.c
+++ b/add1sp.c
@@ -319,7 +319,7 @@ mpfr_add1sp (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
inexact = 1;
set_exponent:
- if (MPFR_UNLIKELY(bx >= __gmpfr_emax)) /* Check for overflow */
+ if (MPFR_UNLIKELY(bx > __gmpfr_emax)) /* Check for overflow */
{
DEBUG( printf("Overflow\n") );
TMP_FREE(marker);