Fix printf format arg type

This commit is contained in:
Pasi Kallinen 2014-08-28 22:08:48 +03:00
parent d704c69b90
commit 3f6ae400e9
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ WHITE [\t ]*
{MALSTRING} { {MALSTRING} {
yytext[yyleng - 1] = '\0'; /* remove trailing newline */ yytext[yyleng - 1] = '\0'; /* remove trailing newline */
fprintf(stderr, "%s:%d:%d: unterminated string constant: %s\n", config, line, col - yyleng + 1, yytext); fprintf(stderr, "%s:%d:%d: unterminated string constant: %s\n", config, line, (int)(col - yyleng + 1), yytext);
return TYPE_MALSTRING; return TYPE_MALSTRING;
} }