[Pcre-svn] [679] code/trunk/src/pcre2_match.c: Add cast to a…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [679] code/trunk/src/pcre2_match.c: Add cast to avoid compiler warning.
Revision: 679
          http://www.exim.org/viewvc/pcre2?view=rev&revision=679
Author:   ph10
Date:     2017-03-14 16:46:08 +0000 (Tue, 14 Mar 2017)
Log Message:
-----------
Add cast to avoid compiler warning.


Modified Paths:
--------------
    code/trunk/src/pcre2_match.c


Modified: code/trunk/src/pcre2_match.c
===================================================================
--- code/trunk/src/pcre2_match.c    2017-03-12 13:47:01 UTC (rev 678)
+++ code/trunk/src/pcre2_match.c    2017-03-14 16:46:08 UTC (rev 679)
@@ -5428,7 +5428,7 @@
     /* No UTF-8 support, or not in UTF-8 mode: count is byte count */


       {
-      if (number > Feptr - mb->start_subject) RRETURN(MATCH_NOMATCH);
+      if ((ptrdiff_t)number > Feptr - mb->start_subject) RRETURN(MATCH_NOMATCH);
       Feptr -= number;
       }