Mercurial > gnulib
changeset 977:fb7b1387e4ac
(strverscmp): Add `parenentheses around arithmetic in operand of |'
as suggested by gcc -Wall.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 09 Jul 1997 15:55:41 +0000 |
parents | 405614c08e52 |
children | 6fa2e0c30481 |
files | lib/strverscmp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/strverscmp.c Wed Jul 09 15:42:54 1997 +0000 +++ b/lib/strverscmp.c Wed Jul 09 15:55:41 1997 +0000 @@ -81,7 +81,7 @@ 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') {