Skip to content

Commit

Permalink
Merge pull request #58 from project-tsurugi/protobuf-3.11
Browse files Browse the repository at this point in the history
PRありがとうございます。確かにByteSizeLongの方が適切ですね。マージします。
  • Loading branch information
kuron99 committed Oct 25, 2022
2 parents 89dbbc4 + b910fc7 commit e22ef4a
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 e22ef4a

Please sign in to comment.