From 91fe2f909154c5cda3b40c68e72c3172a7f137f6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 18 May 2009 23:34:02 -0500 Subject: Unify signedness in hashing calls Our hash_obj and hashtable_index calls and functions were doing a lot of funny things with signedness. Unify all of it to 'unsigned int'. Signed-off-by: Dan McGee Signed-off-by: Junio C Hamano --- decorate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decorate.c') diff --git a/decorate.c b/decorate.c index e6fd8a744..2f8a63e38 100644 --- a/decorate.c +++ b/decorate.c @@ -18,7 +18,7 @@ static void *insert_decoration(struct decoration *n, const struct object *base, { int size = n->size; struct object_decoration *hash = n->hash; - int j = hash_obj(base, size); + unsigned int j = hash_obj(base, size); while (hash[j].base) { if (hash[j].base == base) { @@ -70,7 +70,7 @@ void *add_decoration(struct decoration *n, const struct object *obj, /* Lookup a decoration pointer */ void *lookup_decoration(struct decoration *n, const struct object *obj) { - int j; + unsigned int j; /* nothing to lookup */ if (!n->size) -- cgit v1.2.1