diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-08-20 00:44:26 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-08-20 00:44:26 +0000 |
commit | 7862f026f3bc7ef49debe3d2aa817f04fd184ac9 (patch) | |
tree | 56202835763aa635ef67cad9c667832d5a2e2a71 /sub1sp.c | |
parent | 3a09e770d02ad250aea82fdeba48e6cd7b59608e (diff) | |
download | mpfr-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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)); } - |