From c0bbbb1ba93154e31f05eab69fee70006fe7acb2 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 15 Nov 2005 12:51:02 -0800 Subject: [PATCH] sha1_file.c::add_packed_git(): fix type mismatch. An object name is 20-byte 'unsigned char', not 'char'. Signed-off-by: Junio C Hamano --- sha1_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha1_file.c b/sha1_file.c index cd814d7233..82a01887c2 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -424,7 +424,7 @@ struct packed_git *add_packed_git(char *path, int path_len, int local) struct packed_git *p; unsigned long idx_size; void *idx_map; - char sha1[20]; + unsigned char sha1[20]; if (check_packed_git_idx(path, &idx_size, &idx_map)) return NULL; -- 2.11.4.GIT