diff options
author | Abseil Team <absl-team@google.com> | 2019-11-26 17:29:33 (GMT) |
---|---|---|
committer | Gennadiy Rozental <rogeeff@google.com> | 2019-11-26 20:47:13 (GMT) |
commit | be74b4b2e0d14533b7a394fa45481be9892897ba (patch) | |
tree | 262778c7d05e0de70b823a6415cbf7908850f679 /googletest | |
parent | 7a8a5bcec0051196775eb438727760913749c215 (diff) | |
download | googletest-be74b4b2e0d14533b7a394fa45481be9892897ba.zip googletest-be74b4b2e0d14533b7a394fa45481be9892897ba.tar.gz googletest-be74b4b2e0d14533b7a394fa45481be9892897ba.tar.bz2 |
Googletest export
Wrap call to std::numeric_limits<>::max into round braces to appease MSVC.
Closes #2589
PiperOrigin-RevId: 282581361
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index 1812908..fcaac0b 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -2088,7 +2088,7 @@ GTEST_DISABLE_MSC_DEPRECATED_POP_() using BiggestInt = long long; // NOLINT // The maximum number a BiggestInt can represent. -constexpr BiggestInt kMaxBiggestInt = std::numeric_limits<BiggestInt>::max(); +constexpr BiggestInt kMaxBiggestInt = (std::numeric_limits<BiggestInt>::max)(); // This template class serves as a compile-time function from size to // type. It maps a size in bytes to a primitive type with that |