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); \ k, klen, v, vlen); \
} else if (clip) { \ } else if (clip) { \
if (CONF_MIN_##check_min(um, \ if (CONF_MIN_##check_min(um, \
(min))) { \ (t)(min))) { \
o = (t)(min); \ o = (t)(min); \
} else if ( \ } else if ( \
CONF_MAX_##check_max(um, \ CONF_MAX_##check_max(um, \
(max))) { \ (t)(max))) { \
o = (t)(max); \ o = (t)(max); \
} else { \ } else { \
o = (t)um; \ o = (t)um; \
} \ } \
} else { \ } else { \
if (CONF_MIN_##check_min(um, \ if (CONF_MIN_##check_min(um, \
(min)) || \ (t)(min)) || \
CONF_MAX_##check_max(um, \ CONF_MAX_##check_max(um, \
(max))) { \ (t)(max))) { \
malloc_conf_error( \ malloc_conf_error( \
"Out-of-range " \ "Out-of-range " \
"conf value", \ "conf value", \