diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-30 21:06:59 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-30 21:07:00 +0100 |
commit | 808d11926351018f73db69d54e5920adef578f62 (patch) | |
tree | 92c508142f25974235410353ce5c6f45c8d75207 /sha1_file.c | |
parent | Merge branch 'js/imap-send-curl-compilation-fix' (diff) | |
parent | Correct fscanf formatting string for I64u values (diff) | |
download | git-808d11926351018f73db69d54e5920adef578f62.tar.xz git-808d11926351018f73db69d54e5920adef578f62.zip |
Merge branch 'js/misc-fixes'
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
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c index 50896ff1eb..c5b31de9aa 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -2126,7 +2126,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; } |