Skip to content

Commit

Permalink
Re-fix compilation warnings.
Browse files Browse the repository at this point in the history
Commit 8fcf1ad 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>
  • Loading branch information
Luck, Tony authored and Junio C Hamano committed Mar 2, 2006
1 parent 2495ca0 commit 2b74cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2b74cff

Please sign in to comment.