Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/28185 )
Change subject: misc: Replace a deprecated method in protoio.cc.
......................................................................
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
---
M src/proto/protoio.cc
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/proto/protoio.cc b/src/proto/protoio.cc
index 93c5749..2efcc27 100644
--- a/src/proto/protoio.cc
+++ b/src/proto/protoio.cc
@@ -87,7 +87,7 @@
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);
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/28185
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I0b1aef733c509a73a0af9c39b359d39579d1fd37
Gerrit-Change-Number: 28185
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s