From 02340285c564a7e82105137192d46d554a6fce3a Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Sun, 30 May 2021 20:37:54 +0100 Subject: Added -Wshorten-64-to-32 and fixed all warnings. --- src/modules/m_hidemode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_hidemode.cpp') diff --git a/src/modules/m_hidemode.cpp b/src/modules/m_hidemode.cpp index 5799459c8..ef53d99c8 100644 --- a/src/modules/m_hidemode.cpp +++ b/src/modules/m_hidemode.cpp @@ -48,11 +48,11 @@ class Settings if (modename.empty()) throw ModuleException(" is empty at " + tag->source.str()); - unsigned int rank = tag->getUInt("rank", 0); + unsigned long rank = tag->getUInt("rank", 0); if (!rank) throw ModuleException(" must be greater than 0 at " + tag->source.str()); - ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Hiding the %s mode from users below rank %u", modename.c_str(), rank); + ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Hiding the %s mode from users below rank %lu", modename.c_str(), rank); newranks.emplace(modename, rank); } rankstosee.swap(newranks); -- cgit v1.3.1-10-gc9f91