X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=decorate.c;h=2f8a63e38881587fe29fcb72a5272ef54b9efa6e;hb=b22d301b24b55dc59549833d285decbdd9b1ca53;hp=e6fd8a7441a7ac6753d93e7156b9f71fe248262d;hpb=011c181cc656c8b3e48882729d1b6238e8c5c537;p=git.git 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)