summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-10-18 13:42:35 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-10-18 13:42:35 (GMT)
commit2a9d2ed412e5d8a821b5b6debd86cd3ec9c1e6fe (patch)
tree1bf7e7c88a7b17e5b1fcee487bd59cb84c10e48a /Source/cmStringCommand.cxx
parent314641a40736dafdc06346dc4840763618883e63 (diff)
downloadCMake-2a9d2ed412e5d8a821b5b6debd86cd3ec9c1e6fe.zip
CMake-2a9d2ed412e5d8a821b5b6debd86cd3ec9c1e6fe.tar.gz
CMake-2a9d2ed412e5d8a821b5b6debd86cd3ec9c1e6fe.tar.bz2
COMP: Remove warning
Diffstat (limited to 'Source/cmStringCommand.cxx')
-rw-r--r--Source/cmStringCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStringCommand.cxx b/Source/cmStringCommand.cxx
index d0063c8..eacbfed 100644
--- a/Source/cmStringCommand.cxx
+++ b/Source/cmStringCommand.cxx
@@ -581,7 +581,7 @@ bool cmStringCommand::HandleLengthCommand(std::vector<std::string> const& args)
size_t length = stringValue.size();
char buffer[1024];
- sprintf(buffer, "%d", length);
+ sprintf(buffer, "%d", static_cast<int>(length));
m_Makefile->AddDefinition(variableName.c_str(), buffer);
return true;