/[pcre]/code/branches/pcre16/pcregrep.c
ViewVC logotype

Diff of /code/branches/pcre16/pcregrep.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 800 by ph10, Mon Nov 21 10:41:54 2011 UTC revision 801 by ph10, Mon Dec 12 16:23:37 2011 UTC
# Line 1410  while (ptr < endptr) Line 1410  while (ptr < endptr)
1410          and its line-ending characters (if they matched the pattern), so there          and its line-ending characters (if they matched the pattern), so there
1411          may be no more to print. */          may be no more to print. */
1412    
1413          plength = (linelength + endlinelength) - startoffset;          plength = (int)((linelength + endlinelength) - startoffset);
1414          if (plength > 0) FWRITE(ptr + startoffset, 1, plength, stdout);          if (plength > 0) FWRITE(ptr + startoffset, 1, plength, stdout);
1415          }          }
1416    
# Line 1462  while (ptr < endptr) Line 1462  while (ptr < endptr)
1462    
1463    if (input_line_buffered && bufflength < (size_t)bufsize)    if (input_line_buffered && bufflength < (size_t)bufsize)
1464      {      {
1465      int add = read_one_line(ptr, bufsize - (ptr - main_buffer), in);      int add = read_one_line(ptr, bufsize - (int)(ptr - main_buffer), in);
1466      bufflength += add;      bufflength += add;
1467      endptr += add;      endptr += add;
1468      }      }

Legend:
Removed from v.800  
changed lines
  Added in v.801

  ViewVC Help
Powered by ViewVC 1.1.5