diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-12 18:35:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-12 18:35:59 +0100 |
commit | 80cb19900c3ab36faf92060ea639bccdcda5eaa9 (patch) | |
tree | 8158c05411a9ff538535ee50b47454214a644170 /contrib/libucl | |
parent | 74b182e0166abe108a374495079c2e23cdaceac6 (diff) | |
download | rspamd-80cb19900c3ab36faf92060ea639bccdcda5eaa9.tar.gz rspamd-80cb19900c3ab36faf92060ea639bccdcda5eaa9.zip |
[Minor] Fix some ubsan related issues
Diffstat (limited to 'contrib/libucl')
-rw-r--r-- | contrib/libucl/ucl_hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libucl/ucl_hash.c b/contrib/libucl/ucl_hash.c index a8e735d13..dbd19c928 100644 --- a/contrib/libucl/ucl_hash.c +++ b/contrib/libucl/ucl_hash.c @@ -66,7 +66,7 @@ extern const guchar lc_map[256]; static inline uint32_t ucl_hash_func (const ucl_object_t *o) { - return rspamd_cryptobox_fast_hash (o->key, o->keylen, 0xb9a1ef83c4561c95ULL); + return (uint32_t)rspamd_cryptobox_fast_hash (o->key, o->keylen, 0xb9a1ef83c4561c95ULL); } static inline int @@ -124,7 +124,7 @@ ucl_hash_caseless_func (const ucl_object_t *o) break; } - return rspamd_cryptobox_fast_hash_final (&hst); + return (uint32_t)rspamd_cryptobox_fast_hash_final (&hst); } |