]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1_file.c
Silence GCC's "cast of pointer to integer of a different size" warning
[thirdparty/git.git] / sha1_file.c
index b231b627846e4f213dca4e1db704fd7852fa3172..2350a91dbe5dc9e895e3e688e546ff83307ad6dc 100644 (file)
@@ -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;
 }