mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
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
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue