diff --git a/protoc-c/c_helpers.cc b/protoc-c/c_helpers.cc index 6fd0cd3..ea693c6 100644 --- a/protoc-c/c_helpers.cc +++ b/protoc-c/c_helpers.cc @@ -234,7 +234,7 @@ void PrintComment (io::Printer* printer, std::string comment) std::vector comment_lines; SplitStringUsing (comment, "\r\n", &comment_lines); printer->Print ("/*\n"); - for (int i = 0; i < comment_lines.size(); i++) + for (size_t i = 0; i < comment_lines.size(); i++) { if (!comment_lines[i].empty()) { @@ -286,7 +286,7 @@ const char* const kKeywordList[] = { std::set MakeKeywordsMap() { std::set result; - for (int i = 0; i < GOOGLE_ARRAYSIZE(kKeywordList); i++) { + for (size_t i = 0; i < GOOGLE_ARRAYSIZE(kKeywordList); i++) { result.insert(kKeywordList[i]); } return result;