diff options
Diffstat (limited to 'src/libutil/hash.c')
-rw-r--r-- | src/libutil/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.c b/src/libutil/hash.c index c40200f64..56e80a17e 100644 --- a/src/libutil/hash.c +++ b/src/libutil/hash.c @@ -628,7 +628,7 @@ rspamd_lru_hash_insert (rspamd_lru_hash_t *hash, node->data = value; node->lg_usages = (guint8)lfu_base_value; node->last = TIME_TO_TS (now); - node->eviction_pos = -1; + node->eviction_pos = (guint8)-1; if (ret != 0) { /* Also need to check maxsize */ |