Add casts to avoid some compiler warnings

if the compiler is not able to detect the cast if safe.
This commit is contained in:
Patrick Pelissier committed 2020-06-21 23:03:40 +02:00
1 parent bf49b8e933
commit 3f84f54d65
5 files changed
+76 -8

No files matched your search

+1 -1
View File
@@ -1846,7 +1846,7 @@ typedef enum {
DICTI_OA_CONTRACT(dict); \
size_t size; \
/* Get the size which will allow to fit this capacity */ \
size = m_core_roundpow2 (capacity * (1.0 / coeff_up)); \
size = m_core_roundpow2 ((uint64_t) (capacity * (1.0 / coeff_up))); \
/* Test for overflow of the computation */ \
if (M_UNLIKELY (size < capacity)) { \
M_MEMORY_FULL((size_t)-1); \