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:
Tim J. Robbins 2002-10-02 09:57:54 +00:00
parent 748bb23dcc
commit 54beeb39c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104367

View File

@ -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);
}