diff options
author | Jason Evans <jasone@FreeBSD.org> | 2016-03-03 01:30:28 +0000 |
---|---|---|
committer | Jason Evans <jasone@FreeBSD.org> | 2016-03-03 01:30:28 +0000 |
commit | cb2ababcfd9abe935ffea4e83461f893f274f38a (patch) | |
tree | 3afd4bb1a3a51bc3580fef372f4bfa77553f2035 /contrib/jemalloc | |
parent | 11fd20b5260e19772aa8227b7e5db8a09d836c2e (diff) | |
download | src-cb2ababcfd9abe935ffea4e83461f893f274f38a.tar.gz src-cb2ababcfd9abe935ffea4e83461f893f274f38a.zip |
Add a cast to prevent a compiler warning.
Notes
Notes:
svn path=/head/; revision=296332
Diffstat (limited to 'contrib/jemalloc')
-rw-r--r-- | contrib/jemalloc/include/jemalloc/internal/nstime.h | 2 | ||||
-rw-r--r-- | 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 |