threads / patch / 1212

patchgit: fix trivial warning from show_rename_copy()

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

## tl;dr

One message between Jul 12, 2005 and Jul 12, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Tony Luck· Jul 12, 2005, 18:54 UTC · lore

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>
---
Show changes to apply.c +1 −1
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,

← back to recent threads