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 <tony.luck@intel.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Luck, Tony committed
Mar 1, 2006 at 15:01 UTC
2b74cffa9179eed274be2a38c59b7e323c813737
1 file changed
+1
-1
pack-objects.c
+1
-1
@@ -99,7 +99,7 @@ static int reused_delta = 0;
99
100
static int pack_revindex_ix(struct packed_git *p)
101
{
102
- unsigned long ui = (unsigned long)(long)p;
102
+ unsigned long ui = (unsigned long)p;
103
int i;
104
105
ui = ui ^ (ui >> 16); /* defeat structure alignment */