From db35fe735a6522089250a0a0804fb1fd18340666 Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Tue, 22 Nov 2016 15:44:54 -0800 Subject: 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. --- src/google/protobuf/empty.pb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/google/protobuf/empty.pb.cc') diff --git a/src/google/protobuf/empty.pb.cc b/src/google/protobuf/empty.pb.cc index 17d608e0..19f4aefe 100644 --- a/src/google/protobuf/empty.pb.cc +++ b/src/google/protobuf/empty.pb.cc @@ -198,7 +198,7 @@ bool Empty::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:google.protobuf.Empty) 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; handle_unusual: -- cgit v1.2.3