diff --git a/m-core.h b/m-core.h index 63752250..20c63faa 100644 --- a/m-core.h +++ b/m-core.h @@ -1873,7 +1873,7 @@ M_PARSE_DEFAULT_TYPE_DEF(m_core_parse_ldouble, long double, strtold, ) #endif #define M_HASH_DECL(hash) size_t hash = M_HASH_INIT ^ M_HASH_SEED -#define M_HASH_UP(hash,h) do { hash = M_HASH_CALC(hash, (h)); } while (0) +#define M_HASH_UP(hash,h) do { hash = (size_t) M_HASH_CALC(hash, (h)); } while (0) #define M_HASH_FINAL(hash) ( (hash) >> (sizeof(size_t)*CHAR_BIT/2) | (hash) ) /* Safe, efficient, and portable Rotate: diff --git a/m-dict.h b/m-dict.h index 8feb97fe..5ad826af 100644 --- a/m-dict.h +++ b/m-dict.h @@ -1856,7 +1856,7 @@ typedef enum { DICTI_OA_CONTRACT(dict); \ size_t size; \ /* Get the size which will allow to fit this capacity */ \ - size = m_core_roundpow2 ((uint64_t) ((double) capacity * (1.0 / coeff_up))); \ + size = (size_t) m_core_roundpow2 ((uint64_t) ((double) capacity * (1.0 / coeff_up))); \ /* Test for overflow of the computation */ \ if (M_UNLIKELY (size < capacity)) { \ M_MEMORY_FULL((size_t)-1); \