From 604c103bbc6221be8764cd39b6727d9ee0780f41 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 24 Apr 2019 01:52:59 -0700 Subject: [PATCH] ircd::db::database::cache: Fix the shard bits default. --- ircd/db.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/db.cc b/ircd/db.cc index 28f47da1f..bf7482a63 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -2938,7 +2938,7 @@ noexcept decltype(ircd::db::database::cache::DEFAULT_SHARD_BITS) ircd::db::database::cache::DEFAULT_SHARD_BITS ( - std::min(std::log2(size_t(db::request_pool_size)), 16.0) + std::log2(std::min(size_t(db::request_pool_size), 16UL)) ); decltype(ircd::db::database::cache::DEFAULT_STRICT)