1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-19 19:43:23 +08:00

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