summaryrefslogtreecommitdiff
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorjrp2014 <jrp2014@users.noreply.github.com>2018-04-03 17:30:46 -0400
committerBrad King <brad.king@kitware.com>2018-04-05 13:42:49 -0400
commit2f87d008034d92a54beb586c031c636596055034 (patch)
treeaf57e3bea5d07836f24f2a51a675afca13298e29 /Source/cmMacroCommand.cxx
parentb0676cc5d48a5e7b79e8c95545b464b67248d96e (diff)
downloadcmake-2f87d008034d92a54beb586c031c636596055034.tar.gz
cmMacroCommand: Fix format string to match type of argument
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r--Source/cmMacroCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index 07943e3440..6f4b930f1b 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -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.