From 36040be2952186d56a6646ee7d972aaafdd4e31a Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 17 Nov 2017 00:02:03 +0000 Subject: Fix a ton of -Wsign-conversion warnings. --- src/modules/m_clones.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_clones.cpp') diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index b3e695bfd..3084b32a8 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.cpp @@ -36,7 +36,7 @@ class CommandClones : public Command std::string clonesstr = "CLONES "; - unsigned long limit = atoi(parameters[0].c_str()); + unsigned long limit = strtoul(parameters[0].c_str(), NULL, 10); /* * Syntax of a /clones reply: -- cgit v1.2.3