COMP: Remove warning
This commit is contained in:
parent
314641a407
commit
2a9d2ed412
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue