diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-10 18:26:49 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-10 18:26:49 +0000 |
commit | cbc6a56ef1a28c8f1cc00149f92fc82e21500ae1 (patch) | |
tree | 138fdc2f5fb252ba0d33af5e9304399637df8b03 /src/libutil/util.c | |
parent | 4e5fae43635e824e1b48f10af0bea7dccee0412d (diff) | |
download | rspamd-cbc6a56ef1a28c8f1cc00149f92fc82e21500ae1.tar.gz rspamd-cbc6a56ef1a28c8f1cc00149f92fc82e21500ae1.zip |
[Fix] Fix int64 -> double conversion
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r-- | src/libutil/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 36ca0cffc..0bb11e92b 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -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 }; |