Commit c4f04f9a authored by Chad Austin's avatar Chad Austin Committed by Facebook Github Bot

build CompressionTest on macOS

Summary: This particular `std::min` is ambiguous on macOS.

Reviewed By: simpkins

Differential Revision: D16352637

fbshipit-source-id: d444b4b5f22c94b76da5463493efe433829bbba5
parent 7186e58a
......@@ -338,7 +338,7 @@ void CompressionVarintTest::runSimpleTest(const DataHolder& dh) {
Random::rand64(
std::max(uint64_t(9), oneBasedMsbPos(uncompressedLength_)) / 9UL);
auto tinyBuf = IOBuf::copyBuffer(
compressed->data(), std::min(compressed->length(), breakPoint));
compressed->data(), std::min<size_t>(compressed->length(), breakPoint));
compressed->trimStart(breakPoint);
tinyBuf->prependChain(std::move(compressed));
compressed = std::move(tinyBuf);
......
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