aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/node_generator.cc
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-04-19 12:43:06 -0700
committerGravatar murgatroid99 <mlumish@google.com>2016-04-19 12:43:06 -0700
commitf8d7747ddd0f947c74d137f843cc32bde0e91eb3 (patch)
tree8b2953637cd244eaf803b651c9fef585b01f1a28 /src/compiler/node_generator.cc
parente264e3984f6a5d8b730760d59930191a3a7c31e8 (diff)
Fixed minor bug with Node generator
Diffstat (limited to 'src/compiler/node_generator.cc')
-rw-r--r--src/compiler/node_generator.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/node_generator.cc b/src/compiler/node_generator.cc
index 7605b64531..03e1314f7b 100644
--- a/src/compiler/node_generator.cc
+++ b/src/compiler/node_generator.cc
@@ -97,10 +97,10 @@ grpc::string GetRelativePath(const grpc::string& from_file,
* as a map of fully qualified message type name to message descriptor */
map<grpc::string, const Descriptor*> GetAllMessages(const FileDescriptor *file) {
map<grpc::string, const Descriptor*> message_types;
- for (int i = 0; i < file->service_count(); i++) {
- const ServiceDescriptor* service = file->service(i);
- for (int j = 0; j < service->method_count(); j++) {
- const MethodDescriptor* method = service->method(i);
+ for (int service_num = 0; service_num < file->service_count(); service_num++) {
+ const ServiceDescriptor* service = file->service(service_num);
+ for (int method_num = 0; method_num < service->method_count(); method_num++) {
+ const MethodDescriptor* method = service->method(method_num);
const Descriptor* input_type = method->input_type();
const Descriptor* output_type = method->output_type();
message_types[input_type->name()] = input_type;