From 775d887bb8a6e1ba8dcfaa3d4221c0760d037819 Mon Sep 17 00:00:00 2001 From: jongfoster Date: Thu, 13 Sep 2001 20:15:37 +0000 Subject: [PATCH] Fixing a compiler warning by adding a cast. --- pcre/pcreposix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcre/pcreposix.c b/pcre/pcreposix.c index 6aeb8828..519d2dd5 100644 --- a/pcre/pcreposix.c +++ b/pcre/pcreposix.c @@ -251,7 +251,7 @@ if (rc == 0) rc = nmatch; /* All captured slots were filled in */ if (rc >= 0) { size_t i; - for (i = 0; i < rc; i++) + for (i = 0; i < (size_t)rc; i++) { pmatch[i].rm_so = ovector[i*2]; pmatch[i].rm_eo = ovector[i*2+1]; -- 2.39.2