# [PATCH] git: fix trivial warning from show_rename_copy()

1 messages from 2005-07-12 to 2005-07-12. Participants: Tony Luck.
Thread: https://gitlist.dev/t/1212

## Tony Luck, 2005-07-12 18:54

Subject: [PATCH] git: fix trivial warning from show_rename_copy()
Message-ID: <200507121854.j6CIsLxd001509@agluck-lia64.sc.intel.com>
URL: https://gitlist.dev/e/200507121854.j6CIsLxd001509%40agluck-lia64.sc.intel.com

```
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>

---

diff --git a/apply.c b/apply.c
--- a/apply.c
+++ b/apply.c
@@ -1143,7 +1143,7 @@ static void show_rename_copy(struct patc
 	 */
 	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,

```
