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]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index b231b627846e4f213dca4e1db704fd7852fa3172..2350a91dbe5dc9e895e3e688e546ff83307ad6dc 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-2014,7
+2014,7
@@
static unsigned long pack_entry_hash(struct packed_git *p, off_t base_offset)
{
unsigned long hash;
- hash = (unsigned long)p + (unsigned long)base_offset;
+ hash = (unsigned long)
(intptr_t)
p + (unsigned long)base_offset;
hash += (hash >> 8) + (hash >> 16);
return hash % MAX_DELTA_CACHE;
}