summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-26 15:46:22 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-26 15:46:22 (GMT)
commita9c0929d3938e432484cc2c3e44bf79167ed010d (patch)
treee9b9ebe3403518d16eb3cee89f32801828341e55 /Source/cmSystemTools.cxx
parent47ef50453004e62510f5705185d912950e8fb68f (diff)
downloadCMake-a9c0929d3938e432484cc2c3e44bf79167ed010d.zip
CMake-a9c0929d3938e432484cc2c3e44bf79167ed010d.tar.gz
CMake-a9c0929d3938e432484cc2c3e44bf79167ed010d.tar.bz2
COMP: Handle both ansi and non-ansi C
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index bc9af6a..4d257b2 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1338,7 +1338,7 @@ std::string cmSystemTools::MakeXMLSafe(const char* str)
&& ch != '\r' )
{
char buffer[33];
- sprintf(buffer, "&lt;%d&gt;", (int)ch);
+ sprintf(buffer, "&lt;%d&gt;", static_cast<int>(ch));
//sprintf(buffer, "&#x%0x;", (unsigned int)ch);
result.insert(result.end(), buffer, buffer+strlen(buffer));
}