From 071bcaab6480dea80a47f574f61dc2cd9518e7dc Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Thu, 21 Sep 2017 17:49:38 +0100 Subject: ALLOC_GROW: avoid -Wsign-compare warnings Signed-off-by: Ramsay Jones Signed-off-by: Junio C Hamano --- builtin/pack-objects.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'builtin') diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index c753e9237a..b40cdfe64a 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -2556,8 +2556,8 @@ struct in_pack_object { }; struct in_pack { - int alloc; - int nr; + unsigned int alloc; + unsigned int nr; struct in_pack_object *array; }; -- cgit v1.2.3