Explorar o código

COMP: Avoid warning.

Brad King %!s(int64=18) %!d(string=hai) anos
pai
achega
6697979aaf
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      Source/cmFileCommand.cxx

+ 4 - 4
Source/cmFileCommand.cxx

@@ -447,7 +447,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
       if(s.length() >= minlen && s.length() >= 1 &&
       if(s.length() >= minlen && s.length() >= 1 &&
          (!have_regex || regex.find(s.c_str())))
          (!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)
         if(limit_output >= 0 && output_size >= limit_output)
           {
           {
           s = "";
           s = "";
@@ -467,7 +467,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
       if(s.length() >= minlen &&
       if(s.length() >= minlen &&
          (!have_regex || regex.find(s.c_str())))
          (!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)
         if(limit_output >= 0 && output_size >= limit_output)
           {
           {
           s = "";
           s = "";
@@ -501,7 +501,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
       if(s.length() >= minlen &&
       if(s.length() >= minlen &&
          (!have_regex || regex.find(s.c_str())))
          (!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)
         if(limit_output >= 0 && output_size >= limit_output)
           {
           {
           s = "";
           s = "";
@@ -520,7 +520,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
      !s.empty() && s.length() >= minlen &&
      !s.empty() && s.length() >= minlen &&
      (!have_regex || regex.find(s.c_str())))
      (!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)
     if(limit_output < 0 || output_size < limit_output)
       {
       {
       strings.push_back(s);
       strings.push_back(s);