summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-05-16 15:55:56 (GMT)
committerBrad King <brad.king@kitware.com>2011-05-16 15:55:56 (GMT)
commitc9174c0e4b3605895ff15a2c4102dfdfec011c8c (patch)
treefc325f66c0ef9f6d907b1ab369cf54cdb648ac43 /Source/cmGlobalUnixMakefileGenerator3.cxx
parent8346a28a0a6587382a30d06a998ae83caa574f4b (diff)
downloadCMake-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.cxx2
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 += '\\';
}