diff options
author | Stepan Khapugin <stkhapugin@google.com> | 2017-09-05 14:10:53 +0200 |
---|---|---|
committer | Stepan Khapugin <stkhapugin@google.com> | 2017-09-05 14:10:53 +0200 |
commit | 9a8794faed3c6a7c80205122d73d93dcb376dd57 (patch) | |
tree | f24aece3d816034858d31154bee5172d67b9b7a0 | |
parent | 7c6353d29a147cad1c904bf2957fd4ca2befe135 (diff) | |
download | googletest-9a8794faed3c6a7c80205122d73d93dcb376dd57.tar.gz googletest-9a8794faed3c6a7c80205122d73d93dcb376dd57.tar.bz2 googletest-9a8794faed3c6a7c80205122d73d93dcb376dd57.zip |
add a cast
-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 fba76614..129fc68e 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); } }; |