From 665a5d30443cee9ef0eb977857ed2d19ed9f3cb6 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 15 Nov 2017 23:00:31 +0900 Subject: [PATCH] Fix a typo --- src/fchash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fchash.c b/src/fchash.c index f4bc0c9..7e8a1df 100644 --- a/src/fchash.c +++ b/src/fchash.c @@ -169,7 +169,7 @@ FcHashTableAdd (FcHashTable *table, return !ret; } - for (prev = &table->buckets[hash & FC_HASH_SIZE]; + for (prev = &table->buckets[hash % FC_HASH_SIZE]; (b = *prev); prev = &(b->next)) { if (!table->compare_func (bucket->key, key))