diff options
Diffstat (limited to 'src/pcre2_compile.c')
-rw-r--r-- | src/pcre2_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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.) */ |