summaryrefslogtreecommitdiff
path: root/set.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-14 17:47:12 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-14 17:47:12 +0000
commitddaeb016bab0a9f6e84a884df85f4859620bb7ef (patch)
treea8ac6dc4d8e8d3526ed3a7793f21939e24bddc2c /set.c
parent3fefb9eb4d8ede8b2978862a7dcd98e2ad00c807 (diff)
downloadmpfr-ddaeb016bab0a9f6e84a884df85f4859620bb7ef.tar.gz
Bug fixed concerning the flags.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@861 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set.c')
-rw-r--r--set.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/set.c b/set.c
index 4556a672b..c82887929 100644
--- a/set.c
+++ b/set.c
@@ -46,6 +46,7 @@ mpfr_set4(a, b, rnd_mode, signb)
if (MPFR_SIGN(a) * signb < 0) MPFR_CHANGE_SIGN(a);
return;
}
+ MPFR_CLEAR_FLAGS(a);
carry = mpfr_round_raw(ap, MPFR_MANT(b), MPFR_PREC(b), (signb<0), preca, rnd_mode);
MPFR_EXP(a) = MPFR_EXP(b);