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/configreader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 2db989b9a..3f4bf9d6f 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -287,8 +287,8 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current) if (!ports.empty()) { irc::portparser portrange(ports, false); - while (int port = portrange.GetToken()) - me->ports.insert(port); + while (long port = portrange.GetToken()) + me->ports.insert(static_cast(port)); } ClassMap::iterator oldMask = oldBlocksByMask.find(std::make_pair(me->name, me->type)); @@ -347,7 +347,7 @@ void ServerConfig::Fill() } SoftLimit = ConfValue("performance")->getUInt("softlimit", (SocketEngine::GetMaxFds() > 0 ? SocketEngine::GetMaxFds() : LONG_MAX), 10); CCOnConnect = ConfValue("performance")->getBool("clonesonconnect", true); - MaxConn = ConfValue("performance")->getUInt("somaxconn", SOMAXCONN); + MaxConn = static_cast(ConfValue("performance")->getUInt("somaxconn", SOMAXCONN)); TimeSkipWarn = ConfValue("performance")->getDuration("timeskipwarn", 2, 0, 30); XLineMessage = options->getString("xlinemessage", "You're banned!", 1); ServerDesc = server->getString("description", "Configure Me", 1); -- cgit v1.3.1-10-gc9f91