summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2495ca0)
raw | patch | inline | side by side (parent: 2495ca0)
author | Luck, Tony <tony.luck@intel.com> | |
Wed, 1 Mar 2006 23:01:53 +0000 (15:01 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 2 Mar 2006 01:42:00 +0000 (17:42 -0800) |
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>
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>
pack-objects.c | patch | blob | history |
diff --git a/pack-objects.c b/pack-objects.c
index 21ee572f48287b36628a027ab265ab58b85c90af..136a7f5aad61e8a90866ee7d0b4bc22e387f0396 100644 (file)
--- a/pack-objects.c
+++ b/pack-objects.c
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 */