From a1a70d9400becb9740c4a2ce582ab775499cd163 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Fri, 23 Jun 2017 14:13:19 -0700 Subject: [PATCH] Fix AsyncFileWriterTest due to long being 32-bit on Windows Summary: `long` is only 32-bits on Windows, which means this call to `std::min` was ambiguous, which caused a compile error. Reviewed By: simpkins Differential Revision: D5305964 fbshipit-source-id: 7e4152006e163a0301652be46318f0fc937e5ead --- folly/experimental/logging/test/AsyncFileWriterTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/experimental/logging/test/AsyncFileWriterTest.cpp b/folly/experimental/logging/test/AsyncFileWriterTest.cpp index 38797404..962ec8c7 100644 --- a/folly/experimental/logging/test/AsyncFileWriterTest.cpp +++ b/folly/experimental/logging/test/AsyncFileWriterTest.cpp @@ -255,7 +255,7 @@ class ReadStats { : deadline_{steady_clock::now() + milliseconds{FLAGS_async_discard_timeout_msec}}, readSleepUS_{static_cast( - std::min(0L, FLAGS_async_discard_read_sleep_usec))} {} + std::min(int64_t{0}, FLAGS_async_discard_read_sleep_usec))} {} void clearSleepDuration() { readSleepUS_.store(0); -- 2.34.1