regcomp.c: Add missing (parens) to expression
authorKarl Williamson <public@khwilliamson.com>
Fri, 19 Apr 2013 19:18:20 +0000 (13:18 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 29 Aug 2013 15:56:07 +0000 (09:56 -0600)
A pair of parentheses were missing leading to this 'if' not acting as
intended.

regcomp.c

index 7f16ff2..694ff8b 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -13188,8 +13188,8 @@ parseit:
              * included.  literal_endpoint==2 means both ends of the range used
              * a literal character, not \x{foo} */
            if (literal_endpoint == 2
-                && (prevvalue >= 'a' && value <= 'z')
-                    || (prevvalue >= 'A' && value <= 'Z'))
+                && ((prevvalue >= 'a' && value <= 'z')
+                    || (prevvalue >= 'A' && value <= 'Z')))
             {
                 _invlist_intersection(this_range, PL_ASCII,
                                       &this_range);