From: Tony Luck Date: Tue, 12 Jul 2005 18:54:21 +0000 (-0700) Subject: [PATCH] git: fix trivial warning from show_rename_copy() X-Git-Tag: v0.99.1~48 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e30e814dbfef7a6e89418863e5d7291a2d53b18f;p=git.git [PATCH] git: fix trivial warning from show_rename_copy() apply.c: In function `show_rename_copy': apply.c:1147: warning: field precision is not type int (arg 3) Signed-off-by: Tony Luck Signed-off-by: Linus Torvalds --- diff --git a/apply.c b/apply.c index c87cbf9eb..97b2eff10 100644 --- a/apply.c +++ b/apply.c @@ -1143,7 +1143,7 @@ static void show_rename_copy(struct patch *p) */ if (old != p->old_name) printf(" %s %.*s{%s => %s} (%d%%)\n", renamecopy, - old - p->old_name, p->old_name, + (int)(old - p->old_name), p->old_name, old, new, p->score); else printf(" %s %s => %s (%d%%)\n", renamecopy,