Add a cast to prevent a compiler warning.
This commit is contained in:
parent
11fd20b526
commit
cb2ababcfd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296332
@ -7,7 +7,7 @@
|
|||||||
typedef struct nstime_s nstime_t;
|
typedef struct nstime_s nstime_t;
|
||||||
|
|
||||||
/* Maximum supported number of seconds (~584 years). */
|
/* Maximum supported number of seconds (~584 years). */
|
||||||
#define NSTIME_SEC_MAX 18446744072
|
#define NSTIME_SEC_MAX KQU(18446744072)
|
||||||
|
|
||||||
#endif /* JEMALLOC_H_TYPES */
|
#endif /* JEMALLOC_H_TYPES */
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
@ -1352,7 +1352,7 @@ static bool
|
|||||||
arena_decay_time_valid(ssize_t decay_time)
|
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
|
ssize_t
|
||||||
|
Loading…
Reference in New Issue
Block a user