http: treat config options sslCAPath and sslCAInfo as paths
[gitweb.git] / sha1_file.c
index ca699d7beb067bff83ea15f0a0e724916f33549b..40a0169ceb11e338e22a5937eb43b57c4d3a6846 100644 (file)
@@ -2137,7 +2137,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;
 }