summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-10-05 16:11:19 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-10-05 16:11:19 +0000
commit107b71431b03b819c3805298baea30a2a265e655 (patch)
tree8277f11c12ff42ea1b9ab4194d7018c5449318ed
parent2274123e3046c8b9c1088818e3ac68569b89215c (diff)
downloadpcre-107b71431b03b819c3805298baea30a2a265e655.tar.gz
Add some casts to get rid of compiler warnings from MSVC8.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@718 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r--pcregrep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcregrep.c b/pcregrep.c
index 8ddd65d..e7e8e47 100644
--- a/pcregrep.c
+++ b/pcregrep.c
@@ -1397,7 +1397,7 @@ while (ptr < endptr)
for (;;)
{
startoffset = offsets[1];
- if (startoffset >= linelength + endlinelength ||
+ if (startoffset >= (int)linelength + endlinelength ||
!match_patterns(matchptr, length, startoffset, offsets, &mrc))
break;
FWRITE(matchptr + startoffset, 1, offsets[0] - startoffset, stdout);
@@ -1460,7 +1460,7 @@ while (ptr < endptr)
/* If input is line buffered, and the buffer is not yet full, read another
line and add it into the buffer. */
- if (input_line_buffered && bufflength < bufsize)
+ if (input_line_buffered && bufflength < (size_t)bufsize)
{
int add = read_one_line(ptr, bufsize - (ptr - main_buffer), in);
bufflength += add;
@@ -1472,7 +1472,7 @@ while (ptr < endptr)
1/3 and refill it. Before we do this, if some unprinted "after" lines are
about to be lost, print them. */
- if (bufflength >= bufsize && ptr > main_buffer + 2*bufthird)
+ if (bufflength >= (size_t)bufsize && ptr > main_buffer + 2*bufthird)
{
if (after_context > 0 &&
lastmatchnumber > 0 &&