Fix some implicit truncation and sign coersion in the networking APIs
[folly.git] / folly / IPAddressV6.h
index db70d09323d9e1d41535c466d37d9cf5a55080cc..eeccc89da61e7056330977d22537bfe52cea3aa4 100644 (file)
@@ -267,7 +267,7 @@ class IPAddressV6 {
   std::string str() const;
 
   // @see IPAddress#version
-  size_t version() const { return 6; }
+  uint8_t version() const { return 6; }
 
   /**
    * Return the solicited-node multicast address for this address.