summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2017-11-15 23:00:31 +0900
committerAkira TAGOH <akira@tagoh.org>2017-11-20 17:37:23 +0530
commit665a5d30443cee9ef0eb977857ed2d19ed9f3cb6 (patch)
tree19ad07b06eab2ab0e3bae8750ebe2da18f0d5dab
parent6b82c7083565d646b8a08d17dbcb41bd998a5a3c (diff)
Fix a typo
-rw-r--r--src/fchash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fchash.c b/src/fchash.c
index f4bc0c94..7e8a1df8 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))