git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Tony Luck <tony.luck@intel.com>
Date
Jul 12, 2005, 18:54 UTC
Message-ID
<200507121854.j6CIsLxd001509@agluck-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,
Message 1 of 1 in “git: fix trivial warning from show_rename_copy()”
  1. git: fix trivial warning from show_rename_copy()Tony Luck, Jul 12, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.