diff options
author | Julien Brianceau <jbriance@cisco.com> | 2016-12-27 09:58:25 +0100 |
---|---|---|
committer | Julien Brianceau <jbriance@cisco.com> | 2016-12-27 09:59:52 +0100 |
commit | 05b019aedcc35632e2abdd718add60f762967882 (patch) | |
tree | 5ee004de56402ceb2df63c66464352b36eacdf74 /src/google/protobuf/compiler/js/embed.cc | |
parent | f52e188fe465c10377f5a2b5765f481cb6fcb2f4 (diff) | |
download | protobuf-05b019aedcc35632e2abdd718add60f762967882.tar.gz protobuf-05b019aedcc35632e2abdd718add60f762967882.tar.bz2 protobuf-05b019aedcc35632e2abdd718add60f762967882.zip |
Fix warning in compiler/js/embed.cc
embed.cc: In function ‘std::string CEscape(const string&)’:
embed.cc:51:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < str.size(); ++i) {
^
Diffstat (limited to 'src/google/protobuf/compiler/js/embed.cc')
-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; |