From: Luck, Tony Date: Wed, 1 Mar 2006 23:01:53 +0000 (-0800) Subject: Re-fix compilation warnings. X-Git-Tag: v1.3.0-rc1~105 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2b74cffa9179eed274be2a38c59b7e323c813737;p=git.git Re-fix compilation warnings. Commit 8fcf1ad9c68e15d881194c8544e7c11d33529c2b has a combination of 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 Signed-off-by: Junio C Hamano --- diff --git a/pack-objects.c b/pack-objects.c index 21ee572f..136a7f5a 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 */