]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3899] Promoted to unsigned for output
authorFrancis Dupont <fdupont@isc.org>
Sun, 14 Jun 2015 21:47:58 +0000 (23:47 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sun, 14 Jun 2015 21:47:58 +0000 (23:47 +0200)
src/lib/dhcpsrv/addr_utilities.cc

index ebe3594e8cb182e703f8f4bdc38fef4b45c01bcc..430b08e2a59dcc0e3a70ea6b49f5b3f6e1b2fdce 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012,2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012, 2015 Internet Systems Consortium, Inc. ("ISC")
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
@@ -199,8 +199,8 @@ isc::asiolink::IOAddress lastAddrInPrefix(const isc::asiolink::IOAddress& prefix
 
 isc::asiolink::IOAddress getNetmask4(uint8_t len) {
     if (len > 32) {
-        isc_throw(BadValue, "Invalid netmask size " << len << ", allowed range "
-                  "is 0..32");
+      isc_throw(BadValue, "Invalid netmask size "
+                << static_cast<unsigned>(len) << ", allowed range is 0..32");
     }
     uint32_t x = ~bitMask4[len];