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_reflection_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_reflection_unittest.cc')
-rw-r--r-- | src/google/protobuf/repeated_field_reflection_unittest.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/google/protobuf/repeated_field_reflection_unittest.cc b/src/google/protobuf/repeated_field_reflection_unittest.cc index 00252674..8b821806 100644 --- a/src/google/protobuf/repeated_field_reflection_unittest.cc +++ b/src/google/protobuf/repeated_field_reflection_unittest.cc @@ -196,8 +196,7 @@ void TestRepeatedFieldRefIterator( int index = 0; for (typename Ref::const_iterator it = handle.begin(); it != handle.end(); ++it) { - ValueType value = static_cast<ValueType>(*it); - EXPECT_EQ((message.*GetFunc)(index), value); + EXPECT_EQ((message.*GetFunc)(index), *it); ++index; } EXPECT_EQ(handle.size(), index); |