diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-02-17 22:41:50 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-02-17 22:41:50 +0100 |
commit | e8c455010d603f1d08ab0f1c8c69ec969c7c65b3 (patch) | |
tree | 2e33a9b883ea025bdc8321c82be2f49204410f1b /mpfr/isnan.c | |
parent | 633b21df09c571a0e9889b6c004bc86a6e173d93 (diff) | |
download | gmp-e8c455010d603f1d08ab0f1c8c69ec969c7c65b3.tar.gz |
* mpfr/isnan.c (mpfr_number_p): Infinity is not a number.
Diffstat (limited to 'mpfr/isnan.c')
-rw-r--r-- | mpfr/isnan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpfr/isnan.c b/mpfr/isnan.c index a13d9997c..f76b7c86a 100644 --- a/mpfr/isnan.c +++ b/mpfr/isnan.c @@ -39,5 +39,5 @@ mpfr_inf_p (mpfr_srcptr x) int mpfr_number_p (mpfr_srcptr x) { - return !MPFR_IS_NAN(x); + return !MPFR_IS_NAN(x) && !MPFR_IS_INF(x); } |