Start fixing implicit truncations
[folly.git] / folly / SocketAddress.cpp
index 1107e0e0f54f628349d50833cc6bd756d902b315..9e0eb0e4148ac47c513bff32fe3cf33a642b1a22 100644 (file)
@@ -548,7 +548,7 @@ bool SocketAddress::prefixMatch(const SocketAddress& other,
   if (other.getFamily() != getFamily()) {
     return false;
   }
-  int mask_length = 128;
+  uint8_t mask_length = 128;
   switch (getFamily()) {
     case AF_INET:
       mask_length = 32;