From 6697979aaf1e37f6adfe1335b03b38cc2abeeaac Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 26 Apr 2007 09:56:04 -0400 Subject: COMP: Avoid warning. --- Source/cmFileCommand.cxx | 8 ++++---- 1 file 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 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(s.size()) + 1; if(limit_output >= 0 && output_size >= limit_output) { s = ""; @@ -467,7 +467,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector const& args) if(s.length() >= minlen && (!have_regex || regex.find(s.c_str()))) { - output_size += s.size() + 1; + output_size += static_cast(s.size()) + 1; if(limit_output >= 0 && output_size >= limit_output) { s = ""; @@ -501,7 +501,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector const& args) if(s.length() >= minlen && (!have_regex || regex.find(s.c_str()))) { - output_size += s.size() + 1; + output_size += static_cast(s.size()) + 1; if(limit_output >= 0 && output_size >= limit_output) { s = ""; @@ -520,7 +520,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector const& args) !s.empty() && s.length() >= minlen && (!have_regex || regex.find(s.c_str()))) { - output_size += s.size() + 1; + output_size += static_cast(s.size()) + 1; if(limit_output < 0 || output_size < limit_output) { strings.push_back(s); -- cgit v0.12