Skip to content

Commit

Permalink
Tweak return types for GetSupportedFeatures to unit64_t.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Jun 2, 2020
1 parent 7cb5597 commit b9cf386
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/csharp/csharp_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace csharp {
Generator::Generator() {}
Generator::~Generator() {}

uint64 Generator::GetSupportedFeatures() const {
uint64_t Generator::GetSupportedFeatures() const {
return CodeGenerator::Feature::FEATURE_PROTO3_OPTIONAL;
}

Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/csharp/csharp_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class PROTOC_EXPORT Generator : public CodeGenerator {
const string& parameter,
GeneratorContext* generator_context,
string* error) const override;
uint64 GetSupportedFeatures() const override;
uint64_t GetSupportedFeatures() const override;
};

} // namespace csharp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PROTOC_EXPORT ObjectiveCGenerator : public CodeGenerator {
GeneratorContext* context,
string* error) const override;

uint64 GetSupportedFeatures() const override {
uint64_t GetSupportedFeatures() const override {
return FEATURE_PROTO3_OPTIONAL;
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/ruby/ruby_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class PROTOC_EXPORT Generator : public CodeGenerator {
bool Generate(const FileDescriptor* file, const string& parameter,
GeneratorContext* generator_context,
string* error) const override;
uint64 GetSupportedFeatures() const override {
uint64_t GetSupportedFeatures() const override {
return FEATURE_PROTO3_OPTIONAL;
}
};
Expand Down

0 comments on commit b9cf386

Please sign in to comment.