Commit c9174c0e authored by Brad King's avatar Brad King

Fix signed/unsigned comparison in EscapeJSON

parent 8346a28a
......@@ -142,7 +142,7 @@ void cmGlobalUnixMakefileGenerator3
//----------------------------------------------------------------------------
std::string EscapeJSON(const std::string& s) {
std::string result;
for (int i = 0; i < s.size(); ++i) {
for (std::string::size_type i = 0; i < s.size(); ++i) {
if (s[i] == '"' || s[i] == '\\') {
result += '\\';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment