diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-14 15:28:28 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-14 15:28:28 +0000 |
commit | cd39e34a339cc632815536de36f2d69b318540dd (patch) | |
tree | e2f2d9367a194348f43fd8ba6583db3484df41ee /set_q.c | |
parent | 27fc2de35bc7ddb9fa7b2f6dd43d32bdf6178758 (diff) | |
download | mpfr-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |