diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-07 09:44:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-07 09:45:16 +0100 |
commit | 545e090c81ce22bbb7edb6d3621c348bd994449c (patch) | |
tree | da40261b3a037e705d49b58b386b899e30c19fe4 /src/libutil/hash.c | |
parent | c207930dc64a680cc9a1ae9075e66f9d963e32e4 (diff) | |
download | rspamd-545e090c81ce22bbb7edb6d3621c348bd994449c.tar.gz rspamd-545e090c81ce22bbb7edb6d3621c348bd994449c.zip |
[Minor] Fix some more suspicious cases
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 */ |