Make most implicit integer truncations and sign conversions explicit
[folly.git] / folly / detail / CacheLocality.cpp
index b5737cdae50c7cfa4ec9c1dd1f444971a266f657..7b9f7e9d81a5d02d400cab808e70672f5036ecc4 100644 (file)
@@ -55,7 +55,7 @@ static CacheLocality getSystemLocalityInfo() {
     // wiggle room
     numCpus = 32;
   }
-  return CacheLocality::uniform(numCpus);
+  return CacheLocality::uniform(size_t(numCpus));
 }
 
 template <>