aboutsummaryrefslogtreecommitdiffstats
path: root/googletest
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2019-11-26 12:29:33 -0500
committerGennadiy Rozental <rogeeff@google.com>2019-11-26 15:47:13 -0500
commitbe74b4b2e0d14533b7a394fa45481be9892897ba (patch)
tree262778c7d05e0de70b823a6415cbf7908850f679 /googletest
parent7a8a5bcec0051196775eb438727760913749c215 (diff)
downloadgoogletest-be74b4b2e0d14533b7a394fa45481be9892897ba.tar.gz
googletest-be74b4b2e0d14533b7a394fa45481be9892897ba.tar.bz2
googletest-be74b4b2e0d14533b7a394fa45481be9892897ba.zip
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.h2
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 1812908f..fcaac0bb 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