From b910fc757b859d08851f2306fafec0d0092505ed Mon Sep 17 00:00:00 2001 From: Nobuhiro Ban Date: Tue, 25 Oct 2022 13:03:21 +0900 Subject: [PATCH] Replaced call of deprecated MessageLite::ByteSize() --- src/tateyama/utils/protobuf_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);