From be5dd257d2df1b72d495989b714eed142a2e6bab Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Tue, 14 Mar 2017 16:46:08 +0000 Subject: [PATCH] Add cast to avoid compiler warning. --- src/pcre2_match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcre2_match.c b/src/pcre2_match.c index 3b57629..9c4f177 100644 --- a/src/pcre2_match.c +++ b/src/pcre2_match.c @@ -5428,7 +5428,7 @@ fprintf(stderr, "++ op=%d\n", *Fecode); /* 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; }