diff options
author | jasone <jasone@FreeBSD.org> | 2016-03-03 01:30:28 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2016-03-03 01:30:28 +0000 |
commit | 8b372d119b26b195b5e8b8aa281d3cc66b288504 (patch) | |
tree | 3afd4bb1a3a51bc3580fef372f4bfa77553f2035 /contrib/jemalloc | |
parent | d09665f372c060f389adad17dc89a0013ec3d4c0 (diff) | |
download | FreeBSD-src-8b372d119b26b195b5e8b8aa281d3cc66b288504.zip FreeBSD-src-8b372d119b26b195b5e8b8aa281d3cc66b288504.tar.gz |
Add a cast to prevent a compiler warning.
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 bd04f04..dcb4b47 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 99e20fd..e0462e4 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 |