avoid gcc "signed/unsigned" warning

[SVN r19128]
This commit is contained in:
Jens Maurer
2003-07-15 15:55:59 +00:00
parent 8e03097d9d
commit ff80be2019

View File

@ -76,7 +76,7 @@ bool ogrep_predicate<iterator, Allocator>::operator()(const boost::match_results
}
// calculate which line we are on, by adding the number of newlines
// we've skipped in the last search:
int current_line = last_line + std::count(last_line_start, end_of_storage, '\n');
unsigned int current_line = last_line + std::count(last_line_start, end_of_storage, '\n');
// if we haven't already printed this line out, then do it now:
if(last_line != current_line)
{