As rev_list_info's flag is unsigned int , var flags should have proper 
type.Also var cnt could be unsigned as there's no negative number of commits 
(all-reaches)

Signed-off-by: Robert Stanca <robert.stan...@gmail.com>
---
 builtin/rev-list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index 0aa93d589..eb4af53ab 100644
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
@@ -211,7 +211,7 @@ static void print_var_int(const char *var, int val)
 
 static int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
 {
-       int cnt, flags = info->flags;
+       unsigned int cnt, flags = info->flags;
        char hex[GIT_SHA1_HEXSZ + 1] = "";
        struct commit_list *tried;
        struct rev_info *revs = info->revs;
-- 
2.12.2.575.gb14f27f91.dirty

Reply via email to