diff options
author | Krystian Kuzniarek <krystian.kuzniarek@gmail.com> | 2019-09-10 10:20:09 (GMT) |
---|---|---|
committer | Krystian Kuzniarek <krystian.kuzniarek@gmail.com> | 2019-10-24 06:31:26 (GMT) |
commit | 6e87238c9b14bcd749364e9b7125622a985a8a20 (patch) | |
tree | ec61eb83c0dc6e9981822cf204c0260025476b2e /googletest/test/gtest_unittest.cc | |
parent | 3f05f651ae3621db58468153e32016bc1397800b (diff) | |
download | googletest-6e87238c9b14bcd749364e9b7125622a985a8a20.zip googletest-6e87238c9b14bcd749364e9b7125622a985a8a20.tar.gz googletest-6e87238c9b14bcd749364e9b7125622a985a8a20.tar.bz2 |
remove BiggestIntrefs/pull/2453/head
Diffstat (limited to 'googletest/test/gtest_unittest.cc')
-rw-r--r-- | googletest/test/gtest_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index 12c5a87..d90fee9 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -55,11 +55,11 @@ TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) { EXPECT_TRUE(dummy || !dummy); // Suppresses warning that dummy is unused. } -#include <limits.h> // For INT_MAX. #include <stdlib.h> #include <string.h> #include <time.h> +#include <limits> #include <map> #include <ostream> #include <type_traits> @@ -3953,11 +3953,11 @@ enum { // On Linux, kCaseB and kCaseA have the same value when truncated to // int size. We want to test whether this will confuse the // assertions. - kCaseB = testing::internal::kMaxBiggestInt, + kCaseB = std::numeric_limits<std::intmax_t>::max(), # else - kCaseB = INT_MAX, + kCaseB = std::numeric_limits<int>::max(), # endif // GTEST_OS_LINUX |