From 635cccdb9dcb862a21ead328ddc553a70dc670e5 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 30 May 2020 18:09:51 -0700 Subject: [PATCH] ircd::db: Fix integer literal for comparison. --- ircd/db.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/db.cc b/ircd/db.cc index 8e021be41..2072bf4b6 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -3632,7 +3632,7 @@ noexcept // This feature is only enabled when RLIMIT_MEMLOCK is unlimited. We don't // want to deal with any limit at all. #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); database::allocator::mlock_current += size;