From 3bb964fdb457083a1aae142f5cf026e3fc6e3dbb Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 31 Aug 2020 12:00:11 +0200 Subject: [PATCH] Use a size_t instead of an unsigned int in toLowerInPlace Co-authored-by: Otto Moerbeek --- pdns/misc.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2