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/channels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 332adcd44..d75cc6303 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -179,10 +179,10 @@ Channel* Channel::JoinUser(LocalUser* user, std::string cname, bool override, co */ if (!override) { - unsigned int maxchans = user->GetClass()->maxchans; + unsigned long maxchans = user->GetClass()->maxchans; if (user->IsOper()) { - unsigned int opermaxchans = ConvToNum(user->oper->getConfig("maxchans")); + unsigned long opermaxchans = ConvToNum(user->oper->getConfig("maxchans")); if (opermaxchans > maxchans) maxchans = opermaxchans; } -- cgit v1.3.1-10-gc9f91