Use %d in a printf() format string and cast the argument to int instead of
using %td when we know that the number is between 0 and 9; mksyntax is a build tool and needs to work on -stable.
This commit is contained in:
parent
748bb23dcc
commit
54beeb39c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104367
@ -393,7 +393,7 @@ digit_convert(void)
|
||||
for (p = digit ; *p && *p != i ; p++);
|
||||
if (*p == '\0')
|
||||
p = digit;
|
||||
fprintf(cfile, " %td,\n", p - digit);
|
||||
fprintf(cfile, " %d,\n", (int)(p - digit));
|
||||
}
|
||||
fputs("};\n", cfile);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user