From 0e41324393d526c25118eee05f6d81e15bfab0d6 Mon Sep 17 00:00:00 2001 From: vladlosev Date: Sat, 22 May 2010 00:27:10 +0000 Subject: [PATCH] Fixes issue 286. --- test/gtest-printers_test.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/gtest-printers_test.cc b/test/gtest-printers_test.cc index 0ecd8715..fae3fa41 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_; };