]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1470] Corrected data type of index into vector
authorStephen Morris <stephen@isc.org>
Mon, 12 Dec 2011 19:54:10 +0000 (19:54 +0000)
committerStephen Morris <stephen@isc.org>
Mon, 12 Dec 2011 19:54:10 +0000 (19:54 +0000)
src/lib/util/strutil.cc

index ed7fc9b171ad79f11ce78fe2f652181cd9eb2cc0..89edcc9c753b8927f088997c80d1c4db1d35c228 100644 (file)
@@ -120,7 +120,7 @@ format(const std::string& format, const std::vector<std::string>& 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<std::string>::size_type i = 0; // Index into argument array
 
     while ((i < args.size()) && (tokenpos != string::npos)) {
         tokenpos = result.find(flag, tokenpos);