Skip to content

Commit

Permalink
Merge pull request #4323 from dtapuska/master
Browse files Browse the repository at this point in the history
Rename a shadowed variable.
  • Loading branch information
xfxyjwf authored Feb 20, 2018
2 parents 0475607 + af3813c commit 177108a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/google/protobuf/map_entry_lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ class MapEntryImpl : public Base {
// We could use memcmp here, but we don't bother. The tag is one byte.
GOOGLE_COMPILE_ASSERT(kTagSize == 1, tag_size_error);
if (size > 0 && *reinterpret_cast<const char*>(data) == kValueTag) {
typename Map::size_type size = map_->size();
typename Map::size_type map_size = map_->size();
value_ptr_ = &(*map_)[key_];
if (GOOGLE_PREDICT_TRUE(size != map_->size())) {
if (GOOGLE_PREDICT_TRUE(map_size != map_->size())) {
// We created a new key-value pair. Fill in the value.
typedef
typename MapIf<ValueTypeHandler::kIsEnum, int*, Value*>::type T;
Expand Down

0 comments on commit 177108a

Please sign in to comment.