Add cast to prevent a compiler warning.

This commit is contained in:
ph10 2020-06-05 16:11:01 +00:00
parent 2257656017
commit 4ddd284477
2 changed files with 3 additions and 1 deletions

View File

@ -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 specified (and, thankfully, are the same on both the Linux and WinXX
platforms.) platforms.)
6. Added a (uint32_t) cast to prevent a compiler warning in pcre2_compile.c.
Version 10.35 09-May-2020 Version 10.35 09-May-2020
--------------------------- ---------------------------

View File

@ -2344,7 +2344,7 @@ if (ptr > *nameptr + MAX_NAME_SIZE)
*errorcodeptr = ERR48; *errorcodeptr = ERR48;
goto FAILED; goto FAILED;
} }
*namelenptr = ptr - *nameptr; *namelenptr = (uint32_t)(ptr - *nameptr);
/* Subpattern names must not be empty, and their terminator is checked here. /* Subpattern names must not be empty, and their terminator is checked here.
(What follows a verb or alpha assertion name is checked separately.) */ (What follows a verb or alpha assertion name is checked separately.) */