Fix non-portable usage of `isinf' in `max' and `min'
authorMark H Weaver <mhw@netris.org>
Thu, 3 Feb 2011 00:32:16 +0000 (19:32 -0500)
committerAndy Wingo <wingo@pobox.com>
Thu, 3 Feb 2011 09:43:09 +0000 (10:43 +0100)
commit041fccf6aa3e0c3015f95e66fdee2db2bfaf42b4
treead7b2141416f8c4c8e54a8168bdde7e50b1d9d2e
parent9da40741891e7b7d11b75f3b1bc78361a8ba2c7a
Fix non-portable usage of `isinf' in `max' and `min'

* numbers.c: Add new macros DOUBLE_IS_POSITIVE_INFINITY and
  DOUBLE_IS_NEGATIVE_INFINITY.
  (scm_max, scm_min): Use the new macros to detect particular
  infinities.  Previously we checked the return value of `isinf'
  to determine the sign of the infinity, but that is not portable.
libguile/numbers.c