Skip to content

Commit

Permalink
c++ remove conversion warning in MapEntryFuncs::ByteSizeLong
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisse74 authored and acozzette committed Oct 18, 2019
1 parent b467aa1 commit 6f0f382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/map_entry_lite.h
Expand Up @@ -128,7 +128,7 @@ struct MapEntryFuncs {
// Tags for key and value will both be one byte (field numbers 1 and 2).
size_t inner_length =
2 + KeyTypeHandler::ByteSize(key) + ValueTypeHandler::ByteSize(value);
return inner_length + io::CodedOutputStream::VarintSize32(inner_length);
return inner_length + io::CodedOutputStream::VarintSize32(static_cast<uint32>(inner_length));
}

static int GetCachedSize(const Key& key, const Value& value) {
Expand Down

0 comments on commit 6f0f382

Please sign in to comment.