Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] git: fix trivial warning from show_rename_copy()
[gitweb.git]
/
apply.c
diff --git
a/apply.c
b/apply.c
index c87cbf9eb3c9c3cc3c836c9b60e0171d89eb75d2..97b2eff1065ac69fc9cfadbc7cf243966a985186 100644
(file)
--- 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,