]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use a size_t instead of an unsigned int in toLowerInPlace 9424/head
authorRemi Gacogne <rgacogne+github@valombre.net>
Mon, 31 Aug 2020 10:00:11 +0000 (12:00 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Aug 2020 10:00:11 +0000 (12:00 +0200)
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/misc.hh

index 584408bf3e8cb1db57c45b4f2d3ab9ebebc914cd..314764d0c3c5cb775cee30b6e7dab3230600ee30 100644 (file)
@@ -235,7 +235,7 @@ inline void toLowerInPlace(string& str)
 {
   const size_t length = str.length();
   char c;
-  for (unsigned int i = 0; i < length; ++i) {
+  for (size_t i = 0; i < length; ++i) {
     c = dns_tolower(str[i]);
     if (c != str[i]) {
       str[i] = c;