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