Commit a1a70d94 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

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
parent e7e6d29a
......@@ -255,7 +255,7 @@ class ReadStats {
: deadline_{steady_clock::now() +
milliseconds{FLAGS_async_discard_timeout_msec}},
readSleepUS_{static_cast<uint64_t>(
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment