From: Remi Gacogne Date: Mon, 31 Aug 2020 10:00:11 +0000 (+0200) Subject: Use a size_t instead of an unsigned int in toLowerInPlace X-Git-Tag: rec-4.5.0-alpha0~32^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bb964fdb457083a1aae142f5cf026e3fc6e3dbb;p=thirdparty%2Fpdns.git Use a size_t instead of an unsigned int in toLowerInPlace Co-authored-by: Otto Moerbeek --- diff --git a/pdns/misc.hh b/pdns/misc.hh index 584408bf3e..314764d0c3 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -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;