]> Savannah Git Hosting - gnulib.git/commitdiff
Fix _GL_CMP parenthesization typo
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jul 2020 15:57:05 +0000 (08:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 24 Jul 2020 17:54:12 +0000 (10:54 -0700)
* m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.

ChangeLog
m4/gnulib-common.m4

index 23e8099821275ef93d3033940de74ab04d64047b..01577c9bb2752bce5e2ecf2c2d6e1de74d8ed083 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix _GL_CMP parenthesization typo
+       * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
+
 2020-07-24  Bruno Haible  <bruno@clisp.org>
 
        dfa: Revert breaking gawk.
index ba4239188db84534d584ff1ad8b886bcf5a4ef28..dfd4a258e5d455940a42759750c88d9245d517bf 100644 (file)
@@ -305,7 +305,7 @@ AC_DEFUN([gl_COMMON_BODY], [
    GCC versions up to GCC 9.
    The better code  (n1 > n2) - (n1 < n2)  from Hacker's Delight ยง 2-9
    avoids conditional jumps in all GCC versions >= 3.4.  */
-#define _GL_CMP(n1, n2) ((n1) > (n2)) - ((n1) < (n2))
+#define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2)))
 ])
   dnl Hint which direction to take regarding cross-compilation guesses:
   dnl When a user installs a program on a platform they are not intimately