aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libucl
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-12 18:35:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-12 18:35:59 +0100
commit80cb19900c3ab36faf92060ea639bccdcda5eaa9 (patch)
tree8158c05411a9ff538535ee50b47454214a644170 /contrib/libucl
parent74b182e0166abe108a374495079c2e23cdaceac6 (diff)
downloadrspamd-80cb19900c3ab36faf92060ea639bccdcda5eaa9.tar.gz
rspamd-80cb19900c3ab36faf92060ea639bccdcda5eaa9.zip
[Minor] Fix some ubsan related issues
Diffstat (limited to 'contrib/libucl')
-rw-r--r--contrib/libucl/ucl_hash.c4
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);
}