diff options
author | Stepan Khapugin <stkhapugin@google.com> | 2017-09-05 12:10:53 (GMT) |
---|---|---|
committer | Stepan Khapugin <stkhapugin@google.com> | 2017-09-05 12:10:53 (GMT) |
commit | 9a8794faed3c6a7c80205122d73d93dcb376dd57 (patch) | |
tree | f24aece3d816034858d31154bee5172d67b9b7a0 /googletest/include/gtest | |
parent | 7c6353d29a147cad1c904bf2957fd4ca2befe135 (diff) | |
download | googletest-9a8794faed3c6a7c80205122d73d93dcb376dd57.zip googletest-9a8794faed3c6a7c80205122d73d93dcb376dd57.tar.gz googletest-9a8794faed3c6a7c80205122d73d93dcb376dd57.tar.bz2 |
add a cast
Diffstat (limited to 'googletest/include/gtest')
-rw-r--r-- | googletest/include/gtest/gtest-printers.h | 3 |
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); } }; |