Skip to content

Commit

Permalink
Replaced call of deprecated MessageLite::ByteSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Oct 25, 2022
1 parent 89dbbc4 commit b910fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tateyama/utils/protobuf_utils.cpp
Expand Up @@ -79,7 +79,7 @@ bool SerializeDelimitedToCodedStream(
google::protobuf::io::CodedOutputStream* output
) {
// Write the size.
size_t size = message.ByteSize();
size_t size = message.ByteSizeLong();
if (size > INT_MAX) return false;

output->WriteVarint32(size);
Expand Down

0 comments on commit b910fc7

Please sign in to comment.