diff --git a/googletest/src/gtest-death-test.cc b/googletest/src/gtest-death-test.cc index 0764f2eb..9c54b81f 100644 --- a/googletest/src/gtest-death-test.cc +++ b/googletest/src/gtest-death-test.cc @@ -32,6 +32,7 @@ #include "gtest/gtest-death-test.h" +#include #include #include "gtest/internal/gtest-port.h" @@ -1282,7 +1283,7 @@ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ GTEST_ATTRIBUTE_NO_SANITIZE_HWADDRESS_ static void StackLowerThanAddress(const void* ptr, bool* result) { int dummy = 0; - *result = (&dummy < ptr); + *result = std::less()(&dummy, ptr); } // Make sure AddressSanitizer does not tamper with the stack here.