]> Savannah Git Hosting - gnulib.git/commitdiff
isnanf: Fix autoconf test.
authorBruno Haible <bruno@clisp.org>
Mon, 21 Dec 2020 00:17:12 +0000 (01:17 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 21 Dec 2020 00:17:12 +0000 (01:17 +0100)
* m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.

ChangeLog
m4/isnanf.m4

index 29f0264040e4ac49ddd9e13efa5c834c79521691..6dcd2d2a1eb0e3095106c2b4f3c30c6a82f4392b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-20  Bruno Haible  <bruno@clisp.org>
+
+       isnanf: Fix autoconf test.
+       * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
+
 2020-12-20  Bruno Haible  <bruno@clisp.org>
 
        Remove some of the support for obsolete IRIX 4 and 5.
index 3863aa159c0c66813d14c7e2ca8d0878c8ba99aa..c040bfe4a2ea678bfae1d63ee3f8a0f2f168f065 100644 (file)
@@ -1,4 +1,4 @@
-# isnanf.m4 serial 17
+# isnanf.m4 serial 18
 dnl Copyright (C) 2007-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -169,7 +169,7 @@ int main()
       m.value = NaN ();
       /* Set the bits below the exponent to 01111...111.  */
       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
-      m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
+      m.word[0] |= (1U << (FLT_EXPBIT0_BIT - 1)) - 1;
       if (!isnanf (m.value))
         result |= 4;
     }