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 <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user