[cmake-commits] king committed cmFileCommand.cxx 1.77 1.78
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Apr 26 09:56:07 EDT 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv2999
Modified Files:
cmFileCommand.cxx
Log Message:
COMP: Avoid warning.
Index: cmFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- cmFileCommand.cxx 25 Apr 2007 21:22:07 -0000 1.77
+++ cmFileCommand.cxx 26 Apr 2007 13:56:04 -0000 1.78
@@ -447,7 +447,7 @@
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 @@
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 @@
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 @@
!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);
More information about the Cmake-commits
mailing list