diff options
-rw-r--r-- | builtin-grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-grep.c b/builtin-grep.c index 4be1514a4..eb821b41b 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -103,7 +103,7 @@ static void show_line(struct grep_opt *opt, const char *bol, const char *eol, printf("%s%c", name, sign); if (opt->linenum) printf("%d%c", lno, sign); - printf("%.*s\n", eol-bol, bol); + printf("%.*s\n", (int)(eol-bol), bol); } static int grep_buffer(struct grep_opt *opt, const char *name, |