aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2016-10-27 14:02:38 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2016-10-27 14:06:57 -0700
commit79a1375f2a700784999ceed627e3131d169056cf (patch)
treefdcbd3154ee6f60f6fd7659dcc8737993aca0ff4 /src/compiler
parent7bf63a2cd5c0102e4b7a714a2897593407d513dd (diff)
fix type comparison in ruby plugin
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/ruby_generator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/ruby_generator.cc b/src/compiler/ruby_generator.cc
index 14854cfa4a..93bda92c91 100644
--- a/src/compiler/ruby_generator.cc
+++ b/src/compiler/ruby_generator.cc
@@ -133,7 +133,7 @@ grpc::string PackageToModule(const grpc::string& name) {
grpc::string result;
result.reserve(name.size());
- for (int i = 0; i < name.size(); i++) {
+ for (grpc::string::size_type i = 0; i < name.size(); i++) {
if (name[i] == '_') {
next_upper = true;
} else {