summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.cxx
diff options
context:
space:
mode:
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;