diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-05-22 00:27:10 (GMT) |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-05-22 00:27:10 (GMT) |
commit | 0e41324393d526c25118eee05f6d81e15bfab0d6 (patch) | |
tree | 52b7297b9c70047be401892c7998e9b602310e3f | |
parent | fbc266f0a4fbf79986db09d6dd74c42c6830f011 (diff) | |
download | googletest-0e41324393d526c25118eee05f6d81e15bfab0d6.zip googletest-0e41324393d526c25118eee05f6d81e15bfab0d6.tar.gz googletest-0e41324393d526c25118eee05f6d81e15bfab0d6.tar.bz2 |
Fixes issue 286.
-rw-r--r-- | test/gtest-printers_test.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/gtest-printers_test.cc b/test/gtest-printers_test.cc index 0ecd871..fae3fa4 100644 --- a/test/gtest-printers_test.cc +++ b/test/gtest-printers_test.cc @@ -84,10 +84,9 @@ namespace foo { // A user-defined unprintable type in a user namespace. class UnprintableInFoo { public: - UnprintableInFoo() : x_(0x12EF), y_(0xAB34), z_(0) {} + UnprintableInFoo() : z_(0) { memcpy(xy_, "\xEF\x12\x0\x0\x34\xAB\x0\x0", 8); } private: - testing::internal::Int32 x_; - testing::internal::Int32 y_; + char xy_[8]; double z_; }; |