diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-10-09 16:11:18 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-10-09 16:11:18 +0000 |
commit | 7b67e393f64afd69c48e585d3e4291d7d1b3a0f5 (patch) | |
tree | 9ee2a385457109b2ee9973bfa4e39935a9096e84 /pcre_compile.c | |
parent | 22b0d506f8a1894a38c745a7b32b235cd660a4b3 (diff) | |
download | pcre-7b67e393f64afd69c48e585d3e4291d7d1b3a0f5.tar.gz |
Fix compile bug for classes like [\W\p{Any}].
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1601 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_compile.c')
-rw-r--r-- | pcre_compile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pcre_compile.c b/pcre_compile.c index 191330a..f8ce576 100644 --- a/pcre_compile.c +++ b/pcre_compile.c @@ -5512,9 +5512,10 @@ for (;; ptr++) actual compiled code. */ #ifdef SUPPORT_UTF - if (xclass && (!should_flip_negation || (options & PCRE_UCP) != 0)) + if (xclass && (xclass_has_prop || !should_flip_negation || + (options & PCRE_UCP) != 0)) #elif !defined COMPILE_PCRE8 - if (xclass && !should_flip_negation) + if (xclass && (xclass_has_prop || !should_flip_negation)) #endif #if defined SUPPORT_UTF || !defined COMPILE_PCRE8 { |