(strverscmp): Add `parenentheses around arithmetic in operand of |'
authorJim Meyering <jim@meyering.net>
Wed, 9 Jul 1997 15:55:41 +0000 (15:55 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 9 Jul 1997 15:55:41 +0000 (15:55 +0000)
as suggested by gcc -Wall.

lib/strverscmp.c

index f8f5193ebac07e9221e940b451864ef09092b177..bc5ba1f9d85d5c7b45275e235b1a9e878e6e2837 100644 (file)
@@ -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')
     {