aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-11-21 15:08:08 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-11-21 15:08:08 +0000
commit1e02b32deb13a96181950e6555bf64b2129f3989 (patch)
tree9471d863a4da98d2696ff978efa483d84c76f18a /src/fuzzy_storage.c
parenta16bea0e74b6bd17f54cf296cf1807a1e83ab2da (diff)
downloadrspamd-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.c2
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) {