diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-21 15:08:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-21 15:08:08 +0000 |
commit | 1e02b32deb13a96181950e6555bf64b2129f3989 (patch) | |
tree | 9471d863a4da98d2696ff978efa483d84c76f18a /src/fuzzy_storage.c | |
parent | a16bea0e74b6bd17f54cf296cf1807a1e83ab2da (diff) | |
download | rspamd-1e02b32deb13a96181950e6555bf64b2129f3989.tar.gz rspamd-1e02b32deb13a96181950e6555bf64b2129f3989.zip |
[Rework] Use a more sane data structure and refactor
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 99d2ef1a1..569889660 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -1335,7 +1335,7 @@ rspamd_fuzzy_process_command(struct fuzzy_session *session) result.v1.prob = 1.0f; /* Store high qword in value and low qword in flag */ result.v1.value = (gint32) ((guint64) session->ctx->stat.fuzzy_hashes >> 32); - result.v1.flag = session->ctx->stat.fuzzy_hashes & G_MAXUINT32; + result.v1.flag = (guint32) (session->ctx->stat.fuzzy_hashes & G_MAXUINT32); rspamd_fuzzy_make_reply(cmd, &result, session, send_flags); } else if (cmd->cmd == FUZZY_PING) { |