/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
// protected
const ByteArray4 IPAddressV4::fetchMask(size_t numBits) {
- static const uint8_t bits = bitCount();
+ static const size_t bits = bitCount();
if (numBits > bits) {
throw IPAddressFormatException(
to<std::string>("IPv4 addresses are 32 bits"));