forked from boostorg/regex
Up the warning level, and fix the resulting warnings with msvc, gcc and Intel.
Fix bug in docs and regenerate. [SVN r65208]
This commit is contained in:
@ -44,9 +44,9 @@ void search(std::istream& is)
|
||||
while(have_more)
|
||||
{
|
||||
// how much do we copy forward from last try:
|
||||
unsigned leftover = (buf + sizeof(buf)) - next_pos;
|
||||
std::ptrdiff_t leftover = (buf + sizeof(buf)) - next_pos;
|
||||
// and how much is left to fill:
|
||||
unsigned size = next_pos - buf;
|
||||
std::ptrdiff_t size = next_pos - buf;
|
||||
// copy forward whatever we have left:
|
||||
std::memmove(buf, next_pos, leftover);
|
||||
// fill the rest from the stream:
|
||||
|
Reference in New Issue
Block a user