summaryrefslogtreecommitdiffstats
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-15 21:47:43 +0100
committerJunio C Hamano <junkio@cox.net>2006-02-15 22:03:27 +0100
commitf8f135c9bae74f846a92e1f1f1fea8308802ace5 (patch)
tree894e221bbf9916cffd2eee87417455f0291f5dd7 /sha1_file.c
parentls-files --error-unmatch pathspec error reporting fix. (diff)
downloadgit-f8f135c9bae74f846a92e1f1f1fea8308802ace5.tar.xz
git-f8f135c9bae74f846a92e1f1f1fea8308802ace5.zip
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 3d11a9bfdc..64cf245418 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;