aboutsummaryrefslogtreecommitdiff
path: root/attr.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 /attr.c
parentd4f6bc887de7957645b998a0b0e22bc4048f36dd (diff)
parent48fb7deb5bbd87933e7d314b73d7c1b52667f80f (diff)
downloadgit-7c74c3926ad60ba1bbfed13355f00a29813a0f32.tar.gz
git-7c74c3926ad60ba1bbfed13355f00a29813a0f32.tar.xz
Merge branch 'lt/maint-unsigned-left-shift'
* lt/maint-unsigned-left-shift: Fix big left-shifts of unsigned char
Diffstat (limited to 'attr.c')
-rw-r--r--attr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/attr.c b/attr.c
index 98eb636f1..f8f6faa94 100644
--- a/attr.c
+++ b/attr.c
@@ -35,8 +35,7 @@ static struct git_attr *(git_attr_hash[HASHSIZE]);
static unsigned hash_name(const char *name, int namelen)
{
- unsigned val = 0;
- unsigned char c;
+ unsigned val = 0, c;
while (namelen--) {
c = *name++;