summaryrefslogtreecommitdiff
path: root/decorate.c
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2009-05-19 04:34:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-20 07:02:24 (GMT)
commit91fe2f909154c5cda3b40c68e72c3172a7f137f6 (patch)
tree9400d0ea436fec81b226f2abe612f50df60273fb /decorate.c
parent99ddd24ad7753458043016bf1b7d88915aaeb396 (diff)
downloadgit-91fe2f909154c5cda3b40c68e72c3172a7f137f6.zip
git-91fe2f909154c5cda3b40c68e72c3172a7f137f6.tar.gz
git-91fe2f909154c5cda3b40c68e72c3172a7f137f6.tar.bz2
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 <dpmcgee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'decorate.c')
-rw-r--r--decorate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decorate.c b/decorate.c
index e6fd8a7..2f8a63e 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)