Merge pull request #2542 from jbrianceau/fix-embed-cc-warning
Fix warning in compiler/js/embed.cc
This commit is contained in:
commit
5f65ee6ac7
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ static char ToDecimalDigit(int num) {
|
||||||
static std::string CEscape(const std::string& str) {
|
static std::string CEscape(const std::string& str) {
|
||||||
std::string dest;
|
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];
|
unsigned char ch = str[i];
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case '\n': dest += "\\n"; break;
|
case '\n': dest += "\\n"; break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue