diff options
author | Ramsay Jones <ramsay@ramsayjones.plus.com> | 2017-09-21 17:49:38 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-22 13:21:11 +0900 |
commit | 071bcaab6480dea80a47f574f61dc2cd9518e7dc (patch) | |
tree | 40dfe32dc0bb96c9bbcae42cfa2f5ddd1c85abe9 /revision.c | |
parent | 356a293f39e101326b274e968552a7379735e230 (diff) | |
download | git-071bcaab6480dea80a47f574f61dc2cd9518e7dc.tar.gz |
ALLOC_GROW: avoid -Wsign-compare warningsrj/no-sign-compare
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c index f032ab2e5c..7da0907c85 100644 --- a/revision.c +++ b/revision.c @@ -1103,7 +1103,7 @@ static void add_rev_cmdline(struct rev_info *revs, unsigned flags) { struct rev_cmdline_info *info = &revs->cmdline; - int nr = info->nr; + unsigned int nr = info->nr; ALLOC_GROW(info->rev, nr + 1, info->alloc); info->rev[nr].item = item; |