]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3899] Promoted to unsigned for output
authorFrancis Dupont <fdupont@isc.org>
Sun, 14 Jun 2015 12:57:31 +0000 (14:57 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sun, 14 Jun 2015 12:57:31 +0000 (14:57 +0200)
src/lib/dhcp/option6_iaprefix.cc

index 77a4d2e3950ba09779462c5f5cc19fec1ce486cf..a1e8bed9e2dc60b89cfb1484eaf7e82d6067aa66 100644 (file)
@@ -39,8 +39,9 @@ Option6IAPrefix::Option6IAPrefix(uint16_t type, const isc::asiolink::IOAddress&
     setEncapsulatedSpace("dhcp6");
     // Option6IAAddr will check if prefix is IPv6 and will throw if it is not
     if (prefix_len > 128) {
-        isc_throw(BadValue, prefix_len << " is not a valid prefix length. "
-                  << "Allowed range is 0..128");
+      isc_throw(BadValue, static_cast<unsigned>(prefix_len)
+                << " is not a valid prefix length. "
+                << "Allowed range is 0..128");
     }
 }