projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d3d80a
)
(strverscmp): Add `parenentheses around arithmetic in operand of |'
author
Jim Meyering
<jim@meyering.net>
Wed, 9 Jul 1997 15:55:41 +0000
(15:55 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 9 Jul 1997 15:55:41 +0000
(15:55 +0000)
as suggested by gcc -Wall.
lib/strverscmp.c
patch
|
blob
|
history
diff --git
a/lib/strverscmp.c
b/lib/strverscmp.c
index
f8f5193
..
bc5ba1f
100644
(file)
--- 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')
{