summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-01-05 15:09:16 -0500
committerDerek Mauro <dmauro@google.com>2021-01-13 20:59:05 -0500
commit996b65e64e415c683d7f15ee5926d66309425ce8 (patch)
treeb716ba3084214ba93f524da9e40a4588b0086df0 /googletest/include/gtest
parentf8304d762e0ed119d3d1c72deb1976dc80029db5 (diff)
downloadgoogletest-996b65e64e415c683d7f15ee5926d66309425ce8.tar.gz
googletest-996b65e64e415c683d7f15ee5926d66309425ce8.zip
Googletest export
Fix Objective-C++ compatibility PiperOrigin-RevId: 350192165
Diffstat (limited to 'googletest/include/gtest')
-rw-r--r--googletest/include/gtest/gtest-printers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/googletest/include/gtest/gtest-printers.h b/googletest/include/gtest/gtest-printers.h
index d3292247..1f72b780 100644
--- a/googletest/include/gtest/gtest-printers.h
+++ b/googletest/include/gtest/gtest-printers.h
@@ -266,7 +266,9 @@ struct RawBytesPrinter {
template <typename T, size_t = sizeof(T)>
static void PrintValue(const T& value, ::std::ostream* os) {
PrintBytesInObjectTo(
- reinterpret_cast<const unsigned char*>(std::addressof(value)),
+ static_cast<const unsigned char*>(
+ // Load bearing cast to void* to support iOS
+ reinterpret_cast<const void*>(std::addressof(value))),
sizeof(value), os);
}
};
OpenPOWER on IntegriCloud