summaryrefslogtreecommitdiff
path: root/m4/isnanl.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2014-12-05 11:30:27 +0100
committerBruno Haible <bruno@clisp.org>2014-12-05 11:30:27 +0100
commit1000eab5ab8c64eed6821d0a7c78024a00297a17 (patch)
treeb60b9d6ca9aeeb7915f4b156c20d591cf513538e /m4/isnanl.m4
parentcab5b4a9274c0835fcfd50fc137e22fd2f92d257 (diff)
downloadgnulib-1000eab5ab8c64eed6821d0a7c78024a00297a17.tar.gz
Fix LDBL80_WORDS macro on big endian platforms.
* m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in LDBL80_WORDS macro. * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise. * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise. * tests/test-isfinite.c (test_isfinitel): Likewise. * tests/test-isinf.c (test_isinfl): Likewise. * tests/test-isnan.c (test_long_double): Likewise. * tests/test-isnanl.h (main): Likewise. * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis. * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise. * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise. * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise. Reported by Pádraig Brady.
Diffstat (limited to 'm4/isnanl.m4')
-rw-r--r--m4/isnanl.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/isnanl.m4 b/m4/isnanl.m4
index 98b2b69fce..a26cc93fc6 100644
--- a/m4/isnanl.m4
+++ b/m4/isnanl.m4
@@ -1,4 +1,4 @@
-# isnanl.m4 serial 17
+# isnanl.m4 serial 18
dnl Copyright (C) 2007-2014 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -177,7 +177,7 @@ int main ()
# ifdef WORDS_BIGENDIAN
# define LDBL80_WORDS(exponent,manthi,mantlo) \
{ ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
- ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
+ ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
(unsigned int) (mantlo) << 16 \
}
# else