From: Junio C Hamano Date: Tue, 15 Nov 2005 20:51:02 +0000 (-0800) Subject: sha1_file.c::add_packed_git(): fix type mismatch. X-Git-Tag: v0.99.9k~3^2~22 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c0bbbb1ba93154e31f05eab69fee70006fe7acb2;p=git.git 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 --- diff --git a/sha1_file.c b/sha1_file.c index cd814d72..82a01887 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;