about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/strverscmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string/strverscmp.c b/string/strverscmp.c
index 39dfc61a9b..07095566a4 100644
--- a/string/strverscmp.c
+++ b/string/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')
     {
@@ -91,7 +91,7 @@ __strverscmp (s1, s2)
       state |= (c1 == '0') + (isdigit (c1) != 0);
     }
 
-  state = result_type[state << 2 | ((c2 == '0') + (isdigit (c2) != 0))];
+  state = result_type[state << 2 | (((c2 == '0') + (isdigit (c2) != 0)))];
 
   switch (state)
   {