summaryrefslogtreecommitdiff
path: root/lib/strverscmp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-07-09 15:55:41 +0000
committerJim Meyering <jim@meyering.net>1997-07-09 15:55:41 +0000
commit2624654a78f868b1ef37a09474484d57b8b23057 (patch)
treec03f3c2e6c20742f0e46e33dbb17d685d9e81a5e /lib/strverscmp.c
parent2d3d80a3f22db72f732218b32f14d844a17eafb7 (diff)
downloadcoreutils-2624654a78f868b1ef37a09474484d57b8b23057.tar.xz
(strverscmp): Add `parenentheses around arithmetic in operand of |'
as suggested by gcc -Wall.
Diffstat (limited to 'lib/strverscmp.c')
-rw-r--r--lib/strverscmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strverscmp.c b/lib/strverscmp.c
index f8f5193eb..bc5ba1f9d 100644
--- a/lib/strverscmp.c
+++ b/lib/strverscmp.c
@@ -81,7 +81,7 @@ strverscmp (s1, s2)
c1 = *p1++;
c2 = *p2++;
/* Hint: '0' is a digit too. */
- state = S_N | (c1 == '0') + (isdigit (c1) != 0);
+ state = S_N | ((c1 == '0') + (isdigit (c1) != 0));
while ((diff = c1 - c2) == 0 && c1 != '\0')
{