Fixing a compiler warning by adding a cast.
authorjongfoster <jongfoster@users.sourceforge.net>
Thu, 13 Sep 2001 20:15:37 +0000 (20:15 +0000)
committerjongfoster <jongfoster@users.sourceforge.net>
Thu, 13 Sep 2001 20:15:37 +0000 (20:15 +0000)
pcre/pcreposix.c

index 6aeb882..519d2dd 100644 (file)
@@ -251,7 +251,7 @@ if (rc == 0) rc = nmatch;    /* All captured slots were filled in */
 if (rc >= 0)
   {
   size_t i;
 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];
     {
     pmatch[i].rm_so = ovector[i*2];
     pmatch[i].rm_eo = ovector[i*2+1];