From: Stephen Morris Date: Mon, 12 Dec 2011 19:54:10 +0000 (+0000) Subject: [1470] Corrected data type of index into vector X-Git-Tag: perftcpdns_before_epoll~5^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0fd58479c441c0ce5584df6ab898594345e69ef5;p=thirdparty%2Fkea.git [1470] Corrected data type of index into vector --- diff --git a/src/lib/util/strutil.cc b/src/lib/util/strutil.cc index ed7fc9b171..89edcc9c75 100644 --- a/src/lib/util/strutil.cc +++ b/src/lib/util/strutil.cc @@ -120,7 +120,7 @@ format(const std::string& format, const std::vector& args) { // Iterate through replacing all tokens result = format; size_t tokenpos = 0; // Position of last token replaced - int i = 0; // Index into argument array + std::vector::size_type i = 0; // Index into argument array while ((i < args.size()) && (tokenpos != string::npos)) { tokenpos = result.find(flag, tokenpos);