From cb2ababcfd9abe935ffea4e83461f893f274f38a Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Thu, 3 Mar 2016 01:30:28 +0000 Subject: [PATCH] Add a cast to prevent a compiler warning. --- contrib/jemalloc/include/jemalloc/internal/nstime.h | 2 +- contrib/jemalloc/src/arena.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/jemalloc/include/jemalloc/internal/nstime.h b/contrib/jemalloc/include/jemalloc/internal/nstime.h index bd04f04b01a3..dcb4b47f6fd6 100644 --- a/contrib/jemalloc/include/jemalloc/internal/nstime.h +++ b/contrib/jemalloc/include/jemalloc/internal/nstime.h @@ -7,7 +7,7 @@ typedef struct nstime_s nstime_t; /* Maximum supported number of seconds (~584 years). */ -#define NSTIME_SEC_MAX 18446744072 +#define NSTIME_SEC_MAX KQU(18446744072) #endif /* JEMALLOC_H_TYPES */ /******************************************************************************/ diff --git a/contrib/jemalloc/src/arena.c b/contrib/jemalloc/src/arena.c index 99e20fde363e..e0462e4b0caf 100644 --- a/contrib/jemalloc/src/arena.c +++ b/contrib/jemalloc/src/arena.c @@ -1352,7 +1352,7 @@ static bool arena_decay_time_valid(ssize_t decay_time) { - return (decay_time >= -1 && decay_time <= NSTIME_SEC_MAX); + return (decay_time >= -1 && (uint64_t)decay_time <= NSTIME_SEC_MAX); } ssize_t