Browse Source

COMP: Remove warning

Andy Cedilnik 20 năm trước cách đây
mục cha
commit
2a9d2ed412
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
   size_t length = stringValue.size();
   char buffer[1024];
   char buffer[1024];
-  sprintf(buffer, "%d", length);
+  sprintf(buffer, "%d", static_cast<int>(length));
 
 
   m_Makefile->AddDefinition(variableName.c_str(), buffer);
   m_Makefile->AddDefinition(variableName.c_str(), buffer);
   return true;
   return true;