From: Bruno Haible Date: Mon, 21 Dec 2020 00:17:12 +0000 (+0100) Subject: isnanf: Fix autoconf test. X-Git-Tag: v1.0~3340 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7f23e3accadbf473514b12b591e4ad8872ee933f;p=gnulib.git isnanf: Fix autoconf test. * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests. --- diff --git a/ChangeLog b/ChangeLog index 29f0264040..6dcd2d2a1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-12-20 Bruno Haible + + isnanf: Fix autoconf test. + * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests. + 2020-12-20 Bruno Haible Remove some of the support for obsolete IRIX 4 and 5. diff --git a/m4/isnanf.m4 b/m4/isnanf.m4 index 3863aa159c..c040bfe4a2 100644 --- a/m4/isnanf.m4 +++ b/m4/isnanf.m4 @@ -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; }