Merge branch 'js/misc-fixes' into maint
Various compilation fixes and squelching of warnings. * js/misc-fixes: Correct fscanf formatting string for I64u values Silence GCC's "cast of pointer to integer of a different size" warning Squelch warning about an integer overflow
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user