summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-26 13:56:04 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-26 13:56:04 (GMT)
commit6697979aaf1e37f6adfe1335b03b38cc2abeeaac (patch)
treebb34329e2acae5ba6a020dfc2492c00ba1d99d4f
parent93c2ab934efe143018f5e457da25822ed26b9204 (diff)
downloadCMake-6697979aaf1e37f6adfe1335b03b38cc2abeeaac.zip
CMake-6697979aaf1e37f6adfe1335b03b38cc2abeeaac.tar.gz
CMake-6697979aaf1e37f6adfe1335b03b38cc2abeeaac.tar.bz2
COMP: Avoid warning.
-rw-r--r--Source/cmFileCommand.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 1d0187c..2cb3bf2 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -447,7 +447,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
if(s.length() >= minlen && s.length() >= 1 &&
(!have_regex || regex.find(s.c_str())))
{
- output_size += s.size() + 1;
+ output_size += static_cast<int>(s.size()) + 1;
if(limit_output >= 0 && output_size >= limit_output)
{
s = "";
@@ -467,7 +467,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
if(s.length() >= minlen &&
(!have_regex || regex.find(s.c_str())))
{
- output_size += s.size() + 1;
+ output_size += static_cast<int>(s.size()) + 1;
if(limit_output >= 0 && output_size >= limit_output)
{
s = "";
@@ -501,7 +501,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
if(s.length() >= minlen &&
(!have_regex || regex.find(s.c_str())))
{
- output_size += s.size() + 1;
+ output_size += static_cast<int>(s.size()) + 1;
if(limit_output >= 0 && output_size >= limit_output)
{
s = "";
@@ -520,7 +520,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
!s.empty() && s.length() >= minlen &&
(!have_regex || regex.find(s.c_str())))
{
- output_size += s.size() + 1;
+ output_size += static_cast<int>(s.size()) + 1;
if(limit_output < 0 || output_size < limit_output)
{
strings.push_back(s);