diff options
| author | pg <[email protected]> | 2023-02-05 17:18:56 +0300 |
|---|---|---|
| committer | pg <[email protected]> | 2023-02-05 17:18:56 +0300 |
| commit | f0dcf26e6c8006eed936664c53ef5234ac773c75 (patch) | |
| tree | b3728c8bc17c24a6f8b3b9f762cc87b8dab1e54e /contrib/libs/protoc/src/google/protobuf/compiler/java/java_message.cc | |
| parent | 9331e4d05e2f395a0a5ab5f5647517eab412bbed (diff) | |
replace hand-crafted patch with computer program
Diffstat (limited to 'contrib/libs/protoc/src/google/protobuf/compiler/java/java_message.cc')
| -rw-r--r-- | contrib/libs/protoc/src/google/protobuf/compiler/java/java_message.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libs/protoc/src/google/protobuf/compiler/java/java_message.cc b/contrib/libs/protoc/src/google/protobuf/compiler/java/java_message.cc index 3cc9c24e90a..b245106ab72 100644 --- a/contrib/libs/protoc/src/google/protobuf/compiler/java/java_message.cc +++ b/contrib/libs/protoc/src/google/protobuf/compiler/java/java_message.cc @@ -1222,11 +1222,11 @@ void ImmutableMessageGenerator::GenerateParsingConstructor( for (int i = 0; i < descriptor_->field_count(); i++) { const FieldDescriptor* field = sorted_fields[i]; - uint32_t tag = WireFormatLite::MakeTag( + ui32 tag = WireFormatLite::MakeTag( field->number(), WireFormat::WireTypeForFieldType(field->type())); printer->Print("case $tag$: {\n", "tag", - StrCat(static_cast<int32_t>(tag))); + StrCat(static_cast<i32>(tag))); printer->Indent(); field_generators_.get(field).GenerateParsingCode(printer); @@ -1239,10 +1239,10 @@ void ImmutableMessageGenerator::GenerateParsingConstructor( if (field->is_packable()) { // To make packed = true wire compatible, we generate parsing code from a // packed version of this field regardless of field->options().packed(). - uint32_t packed_tag = WireFormatLite::MakeTag( + ui32 packed_tag = WireFormatLite::MakeTag( field->number(), WireFormatLite::WIRETYPE_LENGTH_DELIMITED); printer->Print("case $tag$: {\n", "tag", - StrCat(static_cast<int32_t>(packed_tag))); + StrCat(static_cast<i32>(packed_tag))); printer->Indent(); field_generators_.get(field).GenerateParsingCodeFromPacked(printer); |
