mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
[1470] Corrected data type of index into vector
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user