Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-30 23:06:59 +0300
committerJunio C Hamano <gitster@pobox.com>2015-10-30 23:07:00 +0300
commit808d11926351018f73db69d54e5920adef578f62 (patch)
tree92c508142f25974235410353ce5c6f45c8d75207 /sha1_file.c
parente88e424f4c9d9c8b622cc6a2ebe6e1fa058676f5 (diff)
parentfdcdb778551b904d57c127d9a3546f6a7c8792d3 (diff)
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.c2
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;
}