aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c
index 1d10e1048..f5444ba5b 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -401,7 +401,7 @@ rspamd_lru_hash_insert (rspamd_lru_hash_t *hash, gpointer key, gpointer value, t
rspamd_lru_element_t *res;
gint removed = 0;
- if (g_hash_table_size (hash->storage) >= hash->maxsize) {
+ if ((gint)g_hash_table_size (hash->storage) >= hash->maxsize) {
/* Expire some elements */
res = g_queue_pop_tail (hash->q);
while (res != NULL && now - res->store_time > hash->maxage) {