mirror of
https://github.com/matrix-construct/construct
synced 2024-11-30 02:32:43 +01:00
ircd::db: Fix integer literal for comparison.
This commit is contained in:
parent
cdd1fc2a9c
commit
635cccdb9d
1 changed files with 1 additions and 1 deletions
|
@ -3632,7 +3632,7 @@ noexcept
|
||||||
// This feature is only enabled when RLIMIT_MEMLOCK is unlimited. We don't
|
// This feature is only enabled when RLIMIT_MEMLOCK is unlimited. We don't
|
||||||
// want to deal with any limit at all.
|
// want to deal with any limit at all.
|
||||||
#if defined(HAVE_MLOCK2) && defined(MLOCK_ONFAULT)
|
#if defined(HAVE_MLOCK2) && defined(MLOCK_ONFAULT)
|
||||||
if(database::allocator::mlock_limit == -1)
|
if(database::allocator::mlock_limit == -1UL)
|
||||||
{
|
{
|
||||||
syscall(::mlock2, ret, size, MLOCK_ONFAULT);
|
syscall(::mlock2, ret, size, MLOCK_ONFAULT);
|
||||||
database::allocator::mlock_current += size;
|
database::allocator::mlock_current += size;
|
||||||
|
|
Loading…
Reference in a new issue