More Flexelinting

parent 9b174f9a
...@@ -249,7 +249,7 @@ match(VRT_CTX, const vre_t *vre, VCL_STRING subject, ...@@ -249,7 +249,7 @@ match(VRT_CTX, const vre_t *vre, VCL_STRING subject,
s = MAX_MATCHES; s = MAX_MATCHES;
} }
ovector = pcre2_get_ovector_pointer(data); ovector = pcre2_get_ovector_pointer(data);
assert (s <= pcre2_get_ovector_count(data)); assert (s <= (int)pcre2_get_ovector_count(data));
task->len = sizeof(*ov); task->len = sizeof(*ov);
ov->subject = subject; ov->subject = subject;
...@@ -477,7 +477,7 @@ match_iter_f(void *priv, unsigned flush, const void *ptr, ssize_t len) ...@@ -477,7 +477,7 @@ match_iter_f(void *priv, unsigned flush, const void *ptr, ssize_t len)
return (0); return (0);
} }
len = ov->ovector[1] - ov->ovector[0]; len = (ssize_t)ov->ovector[1] - (ssize_t)ov->ovector[0];
assert(len >= 0); assert(len >= 0);
if (reip->b == NULL && len > WS_ReservationSize(reip->ctx->ws)) { if (reip->b == NULL && len > WS_ReservationSize(reip->ctx->ws)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment