From 3f6ae400e92432ff28d094ef85c8bae2485be956 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 28 Aug 2014 22:08:48 +0300 Subject: [PATCH] Fix printf format arg type --- config.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.l b/config.l index 5e3f887..1d15d76 100644 --- a/config.l +++ b/config.l @@ -43,7 +43,7 @@ WHITE [\t ]* {MALSTRING} { 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; }