aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/any.pb.cc
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@google.com>2016-11-22 15:44:54 -0800
committerAdam Cozzette <acozzette@google.com>2016-11-22 16:23:55 -0800
commitdb35fe735a6522089250a0a0804fb1fd18340666 (patch)
tree7b1532068eeadef058e1b5bf40056cbebfcee727 /src/google/protobuf/any.pb.cc
parenta7f300d6ffe2fbc6bdd10495efedbe6c86a29f49 (diff)
downloadprotobuf-db35fe735a6522089250a0a0804fb1fd18340666.tar.gz
protobuf-db35fe735a6522089250a0a0804fb1fd18340666.tar.bz2
protobuf-db35fe735a6522089250a0a0804fb1fd18340666.zip
Add a "u" suffix to tag numbers in generated code
This seems to be necessary to prevent warnings in some compiler configurations, particularly for tag numbers that are too large to fit in a signed 32-bit int.
Diffstat (limited to 'src/google/protobuf/any.pb.cc')
-rw-r--r--src/google/protobuf/any.pb.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/google/protobuf/any.pb.cc b/src/google/protobuf/any.pb.cc
index 401098fa..e73ebffd 100644
--- a/src/google/protobuf/any.pb.cc
+++ b/src/google/protobuf/any.pb.cc
@@ -214,13 +214,13 @@ bool Any::MergePartialFromCodedStream(
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:google.protobuf.Any)
for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127);
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// string type_url = 1;
case 1: {
- if (tag == 10) {
+ if (tag == 10u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_type_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
@@ -235,7 +235,7 @@ bool Any::MergePartialFromCodedStream(
// bytes value = 2;
case 2: {
- if (tag == 18) {
+ if (tag == 18u) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_value()));
} else {