From 75d32465ae116a58e5da27f597604956e6e28a89 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Tue, 6 Dec 2016 10:51:35 -0800 Subject: [PATCH] Make bm_min_iters a 32-bit flag Summary: The benchmark API only supports `unsigned int` as the iteration number, so this being 64-bit means it has to be truncated for no reason. This change gets us closer to being able to enable MSVC's implicit truncation warnings. Reviewed By: yfeldblum Differential Revision: D4281264 fbshipit-source-id: 27397e3f23bace20f3cc457665ea6f21bf994da5 --- folly/Benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Benchmark.cpp b/folly/Benchmark.cpp index b09faf2e..060c4bf4 100644 --- a/folly/Benchmark.cpp +++ b/folly/Benchmark.cpp @@ -45,7 +45,7 @@ DEFINE_int64( 100, "Minimum # of microseconds we'll accept for each benchmark."); -DEFINE_int64( +DEFINE_int32( bm_min_iters, 1, "Minimum # of iterations we'll try for each benchmark."); -- 2.34.1