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; }