Restore support for decay time of -1 (no decay).
This commit is contained in:
parent
ecdff8fa76
commit
cbc3697dda
@ -1352,7 +1352,11 @@ static bool
|
||||
arena_decay_time_valid(ssize_t decay_time)
|
||||
{
|
||||
|
||||
return (decay_time >= -1 && (uint64_t)decay_time <= NSTIME_SEC_MAX);
|
||||
if (decay_time < -1)
|
||||
return (false);
|
||||
if (decay_time == -1 || (uint64_t)decay_time <= NSTIME_SEC_MAX)
|
||||
return (true);
|
||||
return (false);
|
||||
}
|
||||
|
||||
ssize_t
|
||||
|
Loading…
Reference in New Issue
Block a user