[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] Fix _GL_CMP parenthesization typo
From: |
Paul Eggert |
Subject: |
[PATCH 1/2] Fix _GL_CMP parenthesization typo |
Date: |
Fri, 24 Jul 2020 10:54:58 -0700 |
* m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
---
ChangeLog | 5 +++++
m4/gnulib-common.m4 | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 23e809982..01577c9bb 100644
--- 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.
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index ba4239188..dfd4a258e 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -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
--
2.25.4
- [PATCH 1/2] Fix _GL_CMP parenthesization typo,
Paul Eggert <=