Remove <glog/logging.h> from folly/Indestructible.h
[folly.git] / folly / IPAddressV4.cpp
index b8a0e0e2f847ad45935fac2b6881fd6db526c467..55f2a7b861c7cb500fe21e6e0a0118cbd9dce2b2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -236,7 +236,7 @@ uint8_t IPAddressV4::getNthMSByte(size_t byteIndex) const {
 }
 // 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"));