Fix another warnings that are triggered in another random combinaison of compiler settings
This commit is contained in:
1 parent
56d2a74818
commit
e2c60aa45c
2 files changed
+2
-2
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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); \
|
||||
|
||||
Reference in new issue
Block a user