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

Re: What's in git.git

From
Luck, Tony <tony.luck@intel.com>
Date
Mar 1, 2006, 23:01 UTC
Message-ID
<20060301230153.GA32286@agluck-lia64.sc.intel.com>
In-Reply-To
<7vmzgagxox.fsf@assigned-by-dhcp.cox.net>
On Wed, Mar 01, 2006 at 04:24:14AM -0800, Junio C Hamano wrote:
> * The 'master' branch has these since the last announcement.
>   - compilation warning fixes (Timo Hirvonen, Tony Luck, Andreas Ericsson)

In commit 8fcf1ad9c68e15d881194c8544e7c11d33529c2b you put in a combination of my double cast and Andreas' switch to using unsigned long ... just the latter is sufficient (and a lot less ugly than using the double cast).

Signed-off-by: Tony Luck <tony.luck@intel.com>
--
diff --git a/pack-objects.c b/pack-objects.c
index 21ee572..136a7f5 100644
--- a/pack-objects.c
+++ b/pack-objects.c
@@ -99,7 +99,7 @@ static int reused_delta = 0;
 
 static int pack_revindex_ix(struct packed_git *p)
 {
-	unsigned long ui = (unsigned long)(long)p;
+	unsigned long ui = (unsigned long)p;
 	int i;
 
 	ui = ui ^ (ui >> 16); /* defeat structure alignment */
Previous: Junio C Hamano
Message 4 of 4 in “What's in git.git”
  1. Junio C HamanoMar 1, 2006
  2. Nicolas PitreMar 1, 2006
  3. Junio C HamanoMar 1, 2006
  4. Luck, TonyMar 1, 2006

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.