0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-27 01:02:46 +01:00

ircd::db: Fix integer literal for comparison.

This commit is contained in:
Jason Volk 2020-05-30 18:09:51 -07:00
parent cdd1fc2a9c
commit 635cccdb9d

View file

@ -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;