From 8a7d625f53726fc7703dc0a413686d1ec15488e0 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Tue, 1 Jun 2010 19:28:04 +0100 Subject: [PATCH] Fix some "signed/unsigned comparison" compilation warnings These warnings are issued by both gcc (-Wextra) and msvc (-W3). Signed-off-by: Ramsay Jones Signed-off-by: Andreas Ericsson --- src/revobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/revobject.c b/src/revobject.c index 94eb865e6..ce4be0c1c 100644 --- a/src/revobject.c +++ b/src/revobject.c @@ -36,7 +36,7 @@ unsigned int git_revpool_table__hash(const git_oid *id) git_revpool_table *git_revpool_table_create(unsigned int min_size) { git_revpool_table *table; - int i; + unsigned int i; table = git__malloc(sizeof(*table)); @@ -152,7 +152,7 @@ void git_revpool_table_resize(git_revpool_table *table) void git_revpool_table_free(git_revpool_table *table) { - int index; + unsigned int index; for (index = 0; index <= table->size_mask; ++index) { git_revpool_node *node, *next_node;