diff options
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/compiler/js/embed.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/js/embed.cc b/src/google/protobuf/compiler/js/embed.cc index d04fea2e..a725b62e 100644 --- a/src/google/protobuf/compiler/js/embed.cc +++ b/src/google/protobuf/compiler/js/embed.cc @@ -48,7 +48,7 @@ static char ToDecimalDigit(int num) { static std::string CEscape(const std::string& str) { std::string dest; - for (int i = 0; i < str.size(); ++i) { + for (size_t i = 0; i < str.size(); ++i) { unsigned char ch = str[i]; switch (ch) { case '\n': dest += "\\n"; break; |