Add casts to CONF_HANDLE_T_U().

This avoids signed/unsigned comparison warnings when specifying integer
constants as inputs.
This commit is contained in:
Jason Evans 2017-02-28 14:54:07 -08:00
parent cbb6720861
commit 379dd44c57

View File

@ -962,20 +962,20 @@ malloc_conf_init(void) {
k, klen, v, vlen); \
} else if (clip) { \
if (CONF_MIN_##check_min(um, \
(min))) { \
(t)(min))) { \
o = (t)(min); \
} else if ( \
CONF_MAX_##check_max(um, \
(max))) { \
(t)(max))) { \
o = (t)(max); \
} else { \
o = (t)um; \
} \
} else { \
if (CONF_MIN_##check_min(um, \
(min)) || \
(t)(min)) || \
CONF_MAX_##check_max(um, \
(max))) { \
(t)(max))) { \
malloc_conf_error( \
"Out-of-range " \
"conf value", \