]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsname: Cast to uint8_t, not unsigned char, in RawLabelsVisitor ctor 11624/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 1 Jun 2022 12:36:42 +0000 (14:36 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 1 Jun 2022 12:36:42 +0000 (14:36 +0200)
pdns/dnsname.cc

index 1f302e4bb5a915790e48a390a3c138d305cc7849..c2b48e9fd7731aabd252b5ab5b4119f30fa75c0b 100644 (file)
@@ -567,7 +567,7 @@ DNSName::RawLabelsVisitor::RawLabelsVisitor(const DNSName::string_t& storage): d
 {
   size_t position = 0;
   while (position < storage.size()) {
-    auto labelLength = static_cast<unsigned char>(storage.at(position));
+    auto labelLength = static_cast<uint8_t>(storage.at(position));
     if (labelLength == 0) {
       break;
     }