diff --git a/src/tateyama/utils/protobuf_utils.cpp b/src/tateyama/utils/protobuf_utils.cpp index 152760a4..415fd568 100755 --- a/src/tateyama/utils/protobuf_utils.cpp +++ b/src/tateyama/utils/protobuf_utils.cpp @@ -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);