[Pcre-svn] [1264] code/trunk: Add cast to prevent a compiler…

Kezdőlap
Üzenet törlése
Szerző: Subversion repository
Dátum:  
Címzett: pcre-svn
Tárgy: [Pcre-svn] [1264] code/trunk: Add cast to prevent a compiler warning.
Revision: 1264
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1264
Author:   ph10
Date:     2020-06-05 17:11:01 +0100 (Fri, 05 Jun 2020)
Log Message:
-----------
Add cast to prevent a compiler warning.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2_compile.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2020-06-05 16:06:05 UTC (rev 1263)
+++ code/trunk/ChangeLog    2020-06-05 16:11:01 UTC (rev 1264)
@@ -38,7 +38,9 @@
 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
---------------------------


Modified: code/trunk/src/pcre2_compile.c
===================================================================
--- code/trunk/src/pcre2_compile.c    2020-06-05 16:06:05 UTC (rev 1263)
+++ code/trunk/src/pcre2_compile.c    2020-06-05 16:11:01 UTC (rev 1264)
@@ -2344,7 +2344,7 @@
   *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.) */