Commit 6f0f382d authored by Christian Maurer's avatar Christian Maurer Committed by Adam Cozzette

c++ remove conversion warning in MapEntryFuncs::ByteSizeLong

parent b467aa16
...@@ -128,7 +128,7 @@ struct MapEntryFuncs { ...@@ -128,7 +128,7 @@ struct MapEntryFuncs {
// Tags for key and value will both be one byte (field numbers 1 and 2). // Tags for key and value will both be one byte (field numbers 1 and 2).
size_t inner_length = size_t inner_length =
2 + KeyTypeHandler::ByteSize(key) + ValueTypeHandler::ByteSize(value); 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) { static int GetCachedSize(const Key& key, const Value& value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment