From 1e02b32deb13a96181950e6555bf64b2129f3989 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 21 Nov 2023 15:08:08 +0000 Subject: [Rework] Use a more sane data structure and refactor --- src/fuzzy_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fuzzy_storage.c') 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) { -- cgit v1.2.3