summaryrefslogtreecommitdiff
path: root/sub1sp.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-08-20 00:44:26 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2006-08-20 00:44:26 +0000
commit7862f026f3bc7ef49debe3d2aa817f04fd184ac9 (patch)
tree56202835763aa635ef67cad9c667832d5a2e2a71 /sub1sp.c
parent3a09e770d02ad250aea82fdeba48e6cd7b59608e (diff)
downloadmpfr-7862f026f3bc7ef49debe3d2aa817f04fd184ac9.tar.gz
Partial fix: The inexact flag was not always set in some functions.
In particular, it is now set by mpfr_check_range (if t is not zero) since mpfr_check_range usually comes just after MPFR_SAVE_EXPO_FREE (which restores the previous flags). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4131 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sub1sp.c')
-rw-r--r--sub1sp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sub1sp.c b/sub1sp.c
index 7e711fe83..49bfca7e2 100644
--- a/sub1sp.c
+++ b/sub1sp.c
@@ -791,7 +791,5 @@ mpfr_sub1sp (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode)
MPFR_SET_EXP (a, bx);
MPFR_TMP_FREE(marker);
-
- return inexact*MPFR_INT_SIGN(a);
+ MPFR_RET (inexact * MPFR_INT_SIGN (a));
}
-