folly/stats/BucketedTimeSeries-defs.h: avoid -Wsign-compare error
[folly.git] / folly / stats / BucketedTimeSeries-defs.h
index aa7786b6e59d1f497f869133ccaf151c1b99b325..7dacbded574ae9ae30b87163453ecf507290b669 100644 (file)
@@ -35,7 +35,7 @@ BucketedTimeSeries<VT, TT>::BucketedTimeSeries(size_t nBuckets,
     //
     // There is no point in having more buckets than our timestamp
     // granularity: otherwise we would have buckets that could never be used.
-    if (nBuckets > duration_.count()) {
+    if (nBuckets > size_t(duration_.count())) {
       nBuckets = duration_.count();
     }