summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/gtest-printers.h
diff options
context:
space:
mode:
authorStepan Khapugin <stkhapugin@google.com>2017-09-05 12:10:53 (GMT)
committerStepan Khapugin <stkhapugin@google.com>2017-09-05 12:10:53 (GMT)
commit9a8794faed3c6a7c80205122d73d93dcb376dd57 (patch)
treef24aece3d816034858d31154bee5172d67b9b7a0 /googletest/include/gtest/gtest-printers.h
parent7c6353d29a147cad1c904bf2957fd4ca2befe135 (diff)
downloadgoogletest-9a8794faed3c6a7c80205122d73d93dcb376dd57.zip
googletest-9a8794faed3c6a7c80205122d73d93dcb376dd57.tar.gz
googletest-9a8794faed3c6a7c80205122d73d93dcb376dd57.tar.bz2
add a cast
Diffstat (limited to 'googletest/include/gtest/gtest-printers.h')
-rw-r--r--googletest/include/gtest/gtest-printers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/include/gtest/gtest-printers.h b/googletest/include/gtest/gtest-printers.h
index fba7661..129fc68 100644
--- a/googletest/include/gtest/gtest-printers.h
+++ b/googletest/include/gtest/gtest-printers.h
@@ -137,7 +137,8 @@ class TypeWithoutFormatter {
public:
// This default version is called when kTypeKind is kOtherType.
static void PrintValue(const T& value, ::std::ostream* os) {
- PrintBytesInObjectTo(reinterpret_cast<const unsigned char*>(&value),
+ PrintBytesInObjectTo(reinterpret_cast<const unsigned char*>(
+ reinterpret_cast<const void *>(&value)),
sizeof(value), os);
}
};