summaryrefslogtreecommitdiff
path: root/src/pcre2_valid_utf.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-12-17 18:44:06 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-12-17 18:44:06 +0000
commit9a29fc883ba431ef060e80308d5e4b813b70388d (patch)
treee0b4084519b7d988fe46e528b8e428a3a48f9204 /src/pcre2_valid_utf.c
parent9f663b990467cfd5f173147c3b648cf195f606bd (diff)
downloadpcre2-9a29fc883ba431ef060e80308d5e4b813b70388d.tar.gz
File tidies, version updates, etc. for 10.21-RC1
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@471 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_valid_utf.c')
-rw-r--r--src/pcre2_valid_utf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcre2_valid_utf.c b/src/pcre2_valid_utf.c
index 94e97d7..5b3990e 100644
--- a/src/pcre2_valid_utf.c
+++ b/src/pcre2_valid_utf.c
@@ -136,7 +136,7 @@ for (p = string; length > 0; p++)
register uint32_t ab, d;
c = *p;
- length--;
+ length--;
if (c < 128) continue; /* ASCII character */
@@ -329,7 +329,7 @@ PCRE2_ERROR_UTF16_ERR3 Isolated low surrogate
for (p = string; length > 0; p++)
{
c = *p;
- length--;
+ length--;
if ((c & 0xf800) != 0xd800)
{