summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-06-05 16:11:01 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-06-05 16:11:01 +0000
commitfab58b10fbeca00d294553d831ce09f5a62c6114 (patch)
tree0cb0cbd514482e4c78b1289f1ed7f458b2c54b5b
parent57521ea8fe7cd19ac5254631343d3d36fbd7ba4f (diff)
downloadpcre2-fab58b10fbeca00d294553d831ce09f5a62c6114.tar.gz
Add cast to prevent a compiler warning.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1264 6239d852-aaf2-0410-a92c-79f79f948069
-rw-r--r--ChangeLog2
-rw-r--r--src/pcre2_compile.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0ce683f..eb24858 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -38,6 +38,8 @@ Moreover, these functions come from specific header files, which need to be
specified (and, thankfully, are the same on both the Linux and WinXX
platforms.)
+6. Added a (uint32_t) cast to prevent a compiler warning in pcre2_compile.c.
+
Version 10.35 09-May-2020
---------------------------
diff --git a/src/pcre2_compile.c b/src/pcre2_compile.c
index 62393be..136d583 100644
--- a/src/pcre2_compile.c
+++ b/src/pcre2_compile.c
@@ -2344,7 +2344,7 @@ if (ptr > *nameptr + MAX_NAME_SIZE)
*errorcodeptr = ERR48;
goto FAILED;
}
-*namelenptr = ptr - *nameptr;
+*namelenptr = (uint32_t)(ptr - *nameptr);
/* Subpattern names must not be empty, and their terminator is checked here.
(What follows a verb or alpha assertion name is checked separately.) */