[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 <tony.luck@intel.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Tony Luck 2005-07-12 11:54:21 -07:00 committed by Linus Torvalds
parent 6aa33f4035
commit e30e814dbf

View file

@ -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,