Make most implicit integer truncations and sign conversions explicit
[folly.git] / folly / stats / MultiLevelTimeSeries-defs.h
index 8451af5c728b0ba5931f80686adb8968e8e85f6e..11b2afd5f9795b255b41c60aea5f7ade9b968872 100644 (file)
@@ -75,7 +75,7 @@ void MultiLevelTimeSeries<VT, CT>::addValue(
     TimePoint now,
     const ValueType& val,
     uint64_t times) {
     TimePoint now,
     const ValueType& val,
     uint64_t times) {
-  addValueAggregated(now, val * times, times);
+  addValueAggregated(now, val * ValueType(times), times);
 }
 
 template <typename VT, typename CT>
 }
 
 template <typename VT, typename CT>