diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-10-17 16:39:38 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-10-17 16:39:38 +0000 |
commit | 0095a26167b24f75016fd2007a97d966cd7d618e (patch) | |
tree | 9840cfd609f8863f3d521e05f007d1afd1f227b1 /src/pcre2_study.c | |
parent | aeb1ba019ce21ada87fd59613743d0355c3fc85f (diff) | |
download | pcre2-0095a26167b24f75016fd2007a97d966cd7d618e.tar.gz |
Source tidies (trailing spaces) etc. for 10.34-RC1.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1180 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_study.c')
-rw-r--r-- | src/pcre2_study.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pcre2_study.c b/src/pcre2_study.c index 22c210b..2883868 100644 --- a/src/pcre2_study.c +++ b/src/pcre2_study.c @@ -1738,17 +1738,17 @@ if ((re->flags & (PCRE2_FIRSTSET|PCRE2_STARTLINE)) == 0) } } - /* Replace the start code unit bits with a first code unit, but only if it + /* Replace the start code unit bits with a first code unit, but only if it is not the same as a required later code unit. This is because a search for a required code unit starts after an explicit first code unit, but at a - code unit found from the bitmap. Patterns such as /a*a/ don't work + code unit found from the bitmap. Patterns such as /a*a/ don't work if both the start unit and required unit are the same. */ - if (a >= 0 && + if (a >= 0 && ( - (re->flags & PCRE2_LASTSET) == 0 || + (re->flags & PCRE2_LASTSET) == 0 || ( - re->last_codeunit != (uint32_t)a && + re->last_codeunit != (uint32_t)a && (b < 0 || re->last_codeunit != (uint32_t)b) ) )) |