Add casts to CONF_HANDLE_T_U().
This avoids signed/unsigned comparison warnings when specifying integer constants as inputs.
This commit is contained in:
parent
cbb6720861
commit
379dd44c57
@ -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", \
|
||||
|
Loading…
Reference in New Issue
Block a user