Commit 8fbd6d60 authored by Nathan Bronson's avatar Nathan Bronson Committed by Facebook Github Bot

fix MemoryTest for platforms without constexpr std::max

Reviewed By: Orvid

Differential Revision: D8577555

fbshipit-source-id: 9fa46102f9acf17ab4cc5412c136df17eb8982c4
parent 511a163f
......@@ -16,13 +16,13 @@
#include <folly/Memory.h>
#include <algorithm>
#include <limits>
#include <type_traits>
#include <utility>
#include <glog/logging.h>
#include <folly/ConstexprMath.h>
#include <folly/String.h>
#include <folly/memory/Arena.h>
#include <folly/portability/GMock.h>
......@@ -30,7 +30,7 @@
using namespace folly;
static constexpr std::size_t kTooBig = std::max(
static constexpr std::size_t kTooBig = folly::constexpr_max(
std::size_t{std::numeric_limits<uint32_t>::max()},
std::size_t{1} << (8 * sizeof(std::size_t) - 14));
......
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