summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-04-19 13:18:20 -0600
committerKarl Williamson <public@khwilliamson.com>2013-08-29 09:56:07 -0600
commit29e828265b1f72ba4d731f515e4388f8467d65e8 (patch)
tree9ac36d9002d429c6a0e6106bb0a43886c6bef613 /regcomp.c
parent6a048a6eb9f08d4f03cb1e994cfb588d961be2ea (diff)
downloadperl-29e828265b1f72ba4d731f515e4388f8467d65e8.tar.gz
regcomp.c: Add missing (parens) to expression
A pair of parentheses were missing leading to this 'if' not acting as intended.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 7f16ff23f6..694ff8b024 100644
--- 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);