aboutsummaryrefslogtreecommitdiffstats
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-06-20 21:46:10 -0700
committerJunio C Hamano <gitster@pobox.com>2009-06-20 21:46:10 -0700
commit7c74c3926ad60ba1bbfed13355f00a29813a0f32 (patch)
tree45d5169b6377988e617a9d1a2096b98f31d07a49 /builtin-pack-objects.c
parentMerge git://git.kernel.org/pub/scm/gitk/gitk (diff)
parentFix big left-shifts of unsigned char (diff)
downloadgit-7c74c3926ad60ba1bbfed13355f00a29813a0f32.tar.gz
git-7c74c3926ad60ba1bbfed13355f00a29813a0f32.zip
Merge branch 'lt/maint-unsigned-left-shift'
* lt/maint-unsigned-left-shift: Fix big left-shifts of unsigned char
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r--builtin-pack-objects.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 9742b45c4d..941cc2d73c 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -653,8 +653,7 @@ static void rehash_objects(void)
static unsigned name_hash(const char *name)
{
- unsigned char c;
- unsigned hash = 0;
+ unsigned c, hash = 0;
if (!name)
return 0;