diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2014-12-05 02:54:43 -0800 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2014-12-05 02:54:43 -0800 |
commit | be20ae0b6975071563ecc61f8372fd7936f174ed (patch) | |
tree | ed4c27622fceb78410c74af287532379f475843e /src/google/protobuf/repeated_field_unittest.cc | |
parent | 7c939bcb25bff016ca63669c203e2ebfc0834825 (diff) | |
download | protobuf-be20ae0b6975071563ecc61f8372fd7936f174ed.tar.gz protobuf-be20ae0b6975071563ecc61f8372fd7936f174ed.tar.bz2 protobuf-be20ae0b6975071563ecc61f8372fd7936f174ed.zip |
Fix compile issues and test failures in VS2008.
Diffstat (limited to 'src/google/protobuf/repeated_field_unittest.cc')
-rw-r--r-- | src/google/protobuf/repeated_field_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/repeated_field_unittest.cc b/src/google/protobuf/repeated_field_unittest.cc index 9942af50..15c0c93e 100644 --- a/src/google/protobuf/repeated_field_unittest.cc +++ b/src/google/protobuf/repeated_field_unittest.cc @@ -92,8 +92,8 @@ TEST(RepeatedField, Small) { EXPECT_TRUE(field.empty()); EXPECT_EQ(field.size(), 0); - // Additional 8 bytes are for 'struct Rep' header. - int expected_usage = 4 * sizeof(int) + 8; + // Additional bytes are for 'struct Rep' header. + int expected_usage = 4 * sizeof(int) + sizeof(Arena*); EXPECT_EQ(field.SpaceUsedExcludingSelf(), expected_usage); } |