diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-15 12:51:02 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-15 15:08:28 -0800 |
commit | c0bbbb1ba93154e31f05eab69fee70006fe7acb2 (patch) | |
tree | 750a3ace0f7cc691db44a5624655a2614a8780a2 /sha1_file.c | |
parent | 3299c6f6a8a384453d025ffa117c5d8b35ba1972 (diff) | |
download | git-c0bbbb1ba93154e31f05eab69fee70006fe7acb2.tar.gz |
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 <junkio@cox.net>
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |