Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Silence GCC's "cast of pointer to integer of a different size" warning
[gitweb.git]
/
pack-revindex.c
diff --git
a/pack-revindex.c
b/pack-revindex.c
index 5c8376e9789301b921188e3bf19fba85960a7967..e542ea7703a740916f8d2cac9176674782d37f61 100644
(file)
--- a/
pack-revindex.c
+++ b/
pack-revindex.c
@@
-21,7
+21,7
@@
static int pack_revindex_hashsz;
static int pack_revindex_ix(struct packed_git *p)
{
- unsigned long ui = (unsigned long)p;
+ unsigned long ui = (unsigned long)
(intptr_t)
p;
int i;
ui = ui ^ (ui >> 16); /* defeat structure alignment */