Skip to content

Commit e30e814

Browse files
aeglLinus Torvalds
authored andcommitted
[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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 6aa33f4 commit e30e814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apply.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ static void show_rename_copy(struct patch *p)
11431143
*/
11441144
if (old != p->old_name)
11451145
printf(" %s %.*s{%s => %s} (%d%%)\n", renamecopy,
1146-
old - p->old_name, p->old_name,
1146+
(int)(old - p->old_name), p->old_name,
11471147
old, new, p->score);
11481148
else
11491149
printf(" %s %s => %s (%d%%)\n", renamecopy,

0 commit comments

Comments
 (0)