Explorar el Código

COMP: Remove warning

Andy Cedilnik hace 20 años
padre
commit
2a9d2ed412
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Source/cmStringCommand.cxx

+ 1 - 1
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;