diff options
Diffstat (limited to 'src/fchash.c')
-rw-r--r-- | src/fchash.c | 2 |
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)) |