diff options
author | Brad King <brad.king@kitware.com> | 2011-05-16 15:55:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-05-16 15:55:56 (GMT) |
commit | c9174c0e4b3605895ff15a2c4102dfdfec011c8c (patch) | |
tree | fc325f66c0ef9f6d907b1ab369cf54cdb648ac43 /Source/cmGlobalUnixMakefileGenerator3.cxx | |
parent | 8346a28a0a6587382a30d06a998ae83caa574f4b (diff) | |
download | CMake-c9174c0e4b3605895ff15a2c4102dfdfec011c8c.zip CMake-c9174c0e4b3605895ff15a2c4102dfdfec011c8c.tar.gz CMake-c9174c0e4b3605895ff15a2c4102dfdfec011c8c.tar.bz2 |
Fix signed/unsigned comparison in EscapeJSON
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 54f2b03..c6dbdb1 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -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 += '\\'; } |