summaryrefslogtreecommitdiff
path: root/apply.c
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2005-07-12 11:54:21 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-12 13:04:31 -0700
commite30e814dbfef7a6e89418863e5d7291a2d53b18f (patch)
treec7b1d35d3f408151a79faec4f2dff01bd9129541 /apply.c
parent6aa33f4035d547ac2bd629b1cfd9c46262809d73 (diff)
downloadgit-e30e814dbfef7a6e89418863e5d7291a2d53b18f.tar.gz
[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>
Diffstat (limited to 'apply.c')
-rw-r--r--apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apply.c b/apply.c
index c87cbf9eb3..97b2eff106 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,