From: Christopher Dykes Date: Fri, 23 Jun 2017 21:13:19 +0000 (-0700) Subject: Fix AsyncFileWriterTest due to long being 32-bit on Windows X-Git-Tag: v2017.06.26.00~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a1a70d9400becb9740c4a2ce582ab775499cd163;p=folly.git 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 --- 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);