From 379dd44c572111ea5505d33d808e659e8a8b4592 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Tue, 28 Feb 2017 14:54:07 -0800 Subject: [PATCH] Add casts to CONF_HANDLE_T_U(). This avoids signed/unsigned comparison warnings when specifying integer constants as inputs. --- src/jemalloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jemalloc.c b/src/jemalloc.c index 197f9bdc..7e652802 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -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", \