]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix int64 -> double conversion
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 10 Dec 2016 18:26:49 +0000 (18:26 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 10 Dec 2016 18:26:49 +0000 (18:26 +0000)
src/libutil/util.c

index 36ca0cffcafeab96621ad94e801348b3cf0997e2..0bb11e92bdfb8a9a1c98eb026cc140fd73d5eee9 100644 (file)
@@ -2322,7 +2322,7 @@ rspamd_hash_seed (void)
 static inline gdouble
 rspamd_double_from_int64 (guint64 x)
 {
-       const union { guint i; double d; } u = {
+       const union { guint64 i; double d; } u = {
                        .i = G_GUINT64_CONSTANT(0x3FF) << 52 | x >> 12
        };