Fix variable type and cast on msi.cpp

This way the attribution of i to cmdind is a valid value.
This commit is contained in:
Gabriel Fedel
2021-03-10 14:37:14 +01:00
parent 6ac10d43b1
commit 0bc2a3e999

View File

@@ -300,11 +300,11 @@ static void makeSubstitutions(inputData * const inputPvt,
char *pstart;
char *pend;
int cmdind=-1;
long unsigned int i;
size_t i;
for (i = 0; i < NELEMENTS(cmdNames); i++) {
if (strstr(command, cmdNames[i])) {
cmdind = i;
cmdind = (int)i;
}
}
if (cmdind < 0) goto endcmd;