summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorFlorian Ragwitz <rafl@debian.org>2010-11-07 16:41:53 +0100
committerFlorian Ragwitz <rafl@debian.org>2010-11-07 16:42:18 +0100
commit6d351bf2e060da9a1c13a1f7c2deb014f74fe6b8 (patch)
tree546984c67e6c48523df3ac1599c5bdb29a67de3d /regexec.c
parent39048aa450587a41ed87db5699e412ae2b8ee596 (diff)
downloadperl-6d351bf2e060da9a1c13a1f7c2deb014f74fe6b8.tar.gz
Correct grouping in S_reginclass
As pointed out by Karl Williamson. Apparently the wrong grouping only introduced an inefficiency, not any bugs, so the tests still passed.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 2f02dcf18c..d95b27a486 100644
--- a/regexec.c
+++ b/regexec.c
@@ -6302,7 +6302,7 @@ S_reginclass(pTHX_ const regexp * const prog, register const regnode * const n,
/* If the bitmap didn't (or couldn't) match, and something outside the
* bitmap could match, try that */
- if ((!match && utf8_target) || (flags & ANYOF_UNICODE)) {
+ if (!match && (utf8_target || (flags & ANYOF_UNICODE))) {
if (utf8_target && (flags & ANYOF_UNICODE_ALL) && c >= 256) {
match = TRUE;
}