aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/repeated_field_unittest.cc
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2014-12-05 02:54:43 -0800
committerGravatar Feng Xiao <xfxyjwf@gmail.com>2014-12-05 02:54:43 -0800
commitbe20ae0b6975071563ecc61f8372fd7936f174ed (patch)
treeed4c27622fceb78410c74af287532379f475843e /src/google/protobuf/repeated_field_unittest.cc
parent7c939bcb25bff016ca63669c203e2ebfc0834825 (diff)
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.cc4
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);
}