From fe63b9c3030addeafd3ace80ae9e18f886579283 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 25 Apr 2020 00:16:45 -0700 Subject: [PATCH] misc: Replace a deprecated method in protoio.cc. A warning says that ByteSize is now deprecated, and should be replaced with ByteSizeLong. This change does that. Change-Id: I0b1aef733c509a73a0af9c39b359d39579d1fd37 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28185 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/proto/protoio.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/protoio.cc b/src/proto/protoio.cc index 93c57493f..2efcc2744 100644 --- a/src/proto/protoio.cc +++ b/src/proto/protoio.cc @@ -87,7 +87,7 @@ ProtoOutputStream::write(const Message& msg) io::CodedOutputStream codedStream(zeroCopyStream); // Write the size of the message to the stream - codedStream.WriteVarint32(msg.ByteSize()); + codedStream.WriteVarint32(msg.ByteSizeLong()); // Write the message itself to the stream msg.SerializeWithCachedSizes(&codedStream); -- 2.30.2