[commit: base] master: Fix detection rule to classify types as non-floating-point (a09e40f)

Gabor Greif ggreif at gmail.com
Sat Feb 9 07:53:23 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/a09e40f5c885f6e16bf4e777b4d7eee08c5ca4f8

>---------------------------------------------------------------

commit a09e40f5c885f6e16bf4e777b4d7eee08c5ca4f8
Author: Gabor Greif <ggreif at gmail.com>
Date:   Sat Feb 9 07:10:48 2013 +0100

    Fix detection rule to classify types as non-floating-point

>---------------------------------------------------------------

 aclocal.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index a038de8..50d8168 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -126,7 +126,7 @@ AC_DEFUN([FPTOOLS_CHECK_HTYPE_ELSE],[
     AC_CACHE_VAL(AC_CV_NAME,[
         AC_CV_NAME_supported=yes
         FP_COMPUTE_INT([HTYPE_IS_INTEGRAL],
-                       [($1)1.4],
+                       [($1)0.2 - ($1)0.4 < 0 ? 0 : 1],
                        [FPTOOLS_HTYPE_INCLUDES],[HTYPE_IS_INTEGRAL=0])
 
         if test "$HTYPE_IS_INTEGRAL" -eq 0





More information about the ghc-commits mailing list