summaryrefslogtreecommitdiff
path: root/set_q.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-14 15:28:28 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-14 15:28:28 +0000
commitcd39e34a339cc632815536de36f2d69b318540dd (patch)
treee2f2d9367a194348f43fd8ba6583db3484df41ee /set_q.c
parent27fc2de35bc7ddb9fa7b2f6dd43d32bdf6178758 (diff)
downloadmpfr-cd39e34a339cc632815536de36f2d69b318540dd.tar.gz
Take into account Inf, Nans ; clear the flags of the return variable
in most function calls. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@858 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_q.c')
-rw-r--r--set_q.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/set_q.c b/set_q.c
index d78fb2c67..ad39e702d 100644
--- a/set_q.c
+++ b/set_q.c
@@ -40,6 +40,7 @@ mpfr_set_q (f, q, rnd)
unsigned int prec;
mpfr_t n,d;
+ MPFR_CLEAR_FLAGS(f);
num = mpq_numref(q);
sign = mpz_cmp_ui(num, 0);
if (sign==0) {