@matheusbsbs / matheus-bagliano / commits / c0bbbb1ba9
Fork 0

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>

Junio C Hamano committed Nov 15, 2005 at 12:51 UTC c0bbbb1ba93154e31f05eab69fee70006fe7acb2
1 file changed +1 -1
sha1_file.c
+1 -1
@@ -424,7 +424,7 @@ struct packed_git *add_packed_git(char *path, int path_len, int local)
424 struct packed_git *p;
425 unsigned long idx_size;
426 void *idx_map;
427 - char sha1[20];
427 + unsigned char sha1[20];
428
429 if (check_packed_git_idx(path, &idx_size, &idx_map))
430 return NULL;