cmMacroCommand: Fix format string to match type of argument

This commit is contained in:
jrp2014 2018-04-03 17:30:46 -04:00 committed by Brad King
parent b0676cc5d4
commit 2f87d00803

View File

@ -93,7 +93,7 @@ bool cmMacroHelperCommand::InvokeInitialPass(
argVs.reserve(expandedArgs.size());
char argvName[60];
for (unsigned int j = 0; j < expandedArgs.size(); ++j) {
sprintf(argvName, "${ARGV%i}", j);
sprintf(argvName, "${ARGV%u}", j);
argVs.push_back(argvName);
}
// Invoke all the functions that were collected in the block.