projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a048a6
)
regcomp.c: Add missing (parens) to expression
author
Karl Williamson
<public@khwilliamson.com>
Fri, 19 Apr 2013 19:18:20 +0000
(13:18 -0600)
committer
Karl 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
patch
|
blob
|
history
diff --git
a/regcomp.c
b/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);