summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-15 20:47:43 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-15 21:03:27 (GMT)
commitf8f135c9bae74f846a92e1f1f1fea8308802ace5 (patch)
tree894e221bbf9916cffd2eee87417455f0291f5dd7 /sha1_file.c
parent6becd7da8786555fbd2aeeb9669d37dc810f2658 (diff)
downloadgit-f8f135c9bae74f846a92e1f1f1fea8308802ace5.zip
git-f8f135c9bae74f846a92e1f1f1fea8308802ace5.tar.gz
git-f8f135c9bae74f846a92e1f1f1fea8308802ace5.tar.bz2
packed objects: minor cleanup
The delta depth is unsigned. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 3d11a9b..64cf245 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -830,7 +830,7 @@ void packed_object_info_detail(struct pack_entry *e,
char *type,
unsigned long *size,
unsigned long *store_size,
- int *delta_chain_length,
+ unsigned int *delta_chain_length,
unsigned char *base_sha1)
{
struct packed_git *p = e->p;
@@ -844,7 +844,7 @@ void packed_object_info_detail(struct pack_entry *e,
if (kind != OBJ_DELTA)
*delta_chain_length = 0;
else {
- int chain_length = 0;
+ unsigned int chain_length = 0;
memcpy(base_sha1, pack, 20);
do {
struct pack_entry base_ent;