From 111767fdfc11d44e27ab2b1b136768dbfcf94ebe Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 9 Jul 1997 15:55:41 +0000 Subject: [PATCH] (strverscmp): Add `parenentheses around arithmetic in operand of |' as suggested by gcc -Wall. --- lib/strverscmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') { -- 2.11.0