diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-02 10:39:32 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-02 10:39:32 +0000 |
commit | 3d39f0a5f16085686668180e80e3008cb3fe878f (patch) | |
tree | e03c5e39d9eada6a903f7bd4cdc29febd66a6ec0 /pcregrep.c | |
parent | 6b343554a0bc93c892c11365221c7094aaa4f5ff (diff) | |
download | pcre-3d39f0a5f16085686668180e80e3008cb3fe878f.tar.gz |
Added (int) casts to reduce 64-bit warnings.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@779 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcregrep.c')
-rw-r--r-- | pcregrep.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1410,7 +1410,7 @@ while (ptr < endptr) and its line-ending characters (if they matched the pattern), so there may be no more to print. */ - plength = (linelength + endlinelength) - startoffset; + plength = (int)((linelength + endlinelength) - startoffset); if (plength > 0) FWRITE(ptr + startoffset, 1, plength, stdout); } @@ -1462,7 +1462,7 @@ while (ptr < endptr) if (input_line_buffered && bufflength < (size_t)bufsize) { - int add = read_one_line(ptr, bufsize - (ptr - main_buffer), in); + int add = read_one_line(ptr, bufsize - (int)(ptr - main_buffer), in); bufflength += add; endptr += add; } |