diff options
author | Jim Meyering <jim@meyering.net> | 1997-07-09 15:55:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-07-09 15:55:41 +0000 |
commit | 2624654a78f868b1ef37a09474484d57b8b23057 (patch) | |
tree | c03f3c2e6c20742f0e46e33dbb17d685d9e81a5e /lib | |
parent | 2d3d80a3f22db72f732218b32f14d844a17eafb7 (diff) | |
download | coreutils-2624654a78f868b1ef37a09474484d57b8b23057.tar.xz |
(strverscmp): Add `parenentheses around arithmetic in operand of |'
as suggested by gcc -Wall.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/strverscmp.c | 2 |
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') { |