summaryrefslogtreecommitdiff
path: root/mpfr/isnan.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-02-17 22:41:50 +0100
committerKevin Ryde <user42@zip.com.au>2001-02-17 22:41:50 +0100
commite8c455010d603f1d08ab0f1c8c69ec969c7c65b3 (patch)
tree2e33a9b883ea025bdc8321c82be2f49204410f1b /mpfr/isnan.c
parent633b21df09c571a0e9889b6c004bc86a6e173d93 (diff)
downloadgmp-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.c2
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);
}