summaryrefslogtreecommitdiff
path: root/src/pack-objects.c
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-10-31 22:59:42 +0800
committerVicent Marti <tanoku@gmail.com>2013-11-01 17:36:04 +0100
commit3343b5ffd37d25fa9f55c23c417cf761a7849e9f (patch)
treee3d2155c004ff26dc84ada5bcb84cc51a4cc075a /src/pack-objects.c
parentab44c62e548373c1494e967f54720faa06ce38b7 (diff)
downloadlibgit2-3343b5ffd37d25fa9f55c23c417cf761a7849e9f.tar.gz
Fix warning on win64
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r--src/pack-objects.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c
index d2774ce6a..c5286f7d3 100644
--- a/src/pack-objects.c
+++ b/src/pack-objects.c
@@ -26,7 +26,7 @@ struct unpacked {
git_pobject *object;
void *data;
struct git_delta_index *index;
- unsigned int depth;
+ int depth;
};
struct tree_walk_context {
@@ -659,7 +659,7 @@ static int delta_cacheable(git_packbuilder *pb, unsigned long src_size,
}
static int try_delta(git_packbuilder *pb, struct unpacked *trg,
- struct unpacked *src, unsigned int max_depth,
+ struct unpacked *src, int max_depth,
unsigned long *mem_usage, int *ret)
{
git_pobject *trg_object = trg->object;