PCRE2Project / pcre2

PCRE2 development is now based here.
Other
922 stars 194 forks source link

match: avoid signed/unsigned mismatch #289

Closed carenas closed 1 year ago

carenas commented 1 year ago

Since 1e78b77 (Code for variable-length lookbehinds, 2023-08-06) the Windows CI job (doing 32bit) is showing:

  pcre2_match.c(5780,16): warning C4018: '>': signed/unsigned mismatch [pcre2-8-static.vcxproj]
  pcre2_match.c(5781,16): warning C4018: '>': signed/unsigned mismatch [pcre2-8-static.vcxproj]

Restrict the ptrdiff to the valid range and while at it remove an unnecessary conditional from the UTF section an update related documentation as well.