Fix the size of the enum in FBString.h under MSVC
[folly.git] / folly / FBString.h
index c43460a2a5fb13632fffcea9d7475ba8162b51e1..53ade9b7adad45e333f3f26bb639436974c143aa 100644 (file)
@@ -810,7 +810,7 @@ private:
     MediumLarge ml_;
   };
 
-  enum {
+  enum : size_t {
     lastChar = sizeof(MediumLarge) - 1,
     maxSmallSize = lastChar / sizeof(Char),
     maxMediumSize = 254 / sizeof(Char),            // coincides with the small