-// 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
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];