From: Gabe Black Date: Sat, 25 Apr 2020 07:16:45 +0000 (-0700) Subject: misc: Replace a deprecated method in protoio.cc. X-Git-Tag: v20.0.0.0~145 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe63b9c3030addeafd3ace80ae9e18f886579283;p=gem5.git 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 --- 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);