From ff80be2019133bc64e1fd0785296c48055f76b8e Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Tue, 15 Jul 2003 15:55:59 +0000 Subject: [PATCH] avoid gcc "signed/unsigned" warning [SVN r19128] --- example/jgrep/jgrep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/jgrep/jgrep.cpp b/example/jgrep/jgrep.cpp index 4e4caad2..4609b965 100644 --- a/example/jgrep/jgrep.cpp +++ b/example/jgrep/jgrep.cpp @@ -76,7 +76,7 @@ bool ogrep_predicate::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) {