aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/protoc/src/google
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-19 14:12:31 +0300
committerthegeorg <thegeorg@yandex-team.ru>2022-02-19 14:12:31 +0300
commit52a1ac58104ca032e718abb079dedc9600e85e34 (patch)
treea8aab7be7dbcd5238c302bdab77d0b11b6cc7f5f /contrib/libs/protoc/src/google
parent7d7953cb46099a2517822b5832d49351eeecbde1 (diff)
downloadydb-52a1ac58104ca032e718abb079dedc9600e85e34.tar.gz
protoc: restore enum inheritance from int
ref:2f2cb47fee757f0cf03f965cbc74b94b10258032
Diffstat (limited to 'contrib/libs/protoc/src/google')
-rw-r--r--contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_enum.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_enum.cc b/contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_enum.cc
index e0c80fc1c6..0d3da32158 100644
--- a/contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_enum.cc
+++ b/contrib/libs/protoc/src/google/protobuf/compiler/cpp/cpp_enum.cc
@@ -95,7 +95,7 @@ EnumGenerator::~EnumGenerator() {}
void EnumGenerator::GenerateDefinition(io::Printer* printer) {
Formatter format(printer, variables_);
- format("enum ${1$$classname$$}$ {\n", descriptor_);
+ format("enum ${1$$classname$$}$ : int {\n", descriptor_);
format.Indent();
const EnumValueDescriptor* min_value = descriptor_->value(0);