summaryrefslogtreecommitdiff
path: root/modules/core/ms_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-11 18:47:54 -0400
committerAdam <Adam@anope.org>2010-10-11 18:47:54 -0400
commitd7aa5f6a3a69c69b5ab3d2ddcdfd2f819e840703 (patch)
tree2236bbe0a4a984e4cabb8d8b1547a7f84dcd3018 /modules/core/ms_set.cpp
parent717c123441bb47a4fab859e8fb3ec8c6ac5b7223 (diff)
Fixed Windows build
Diffstat (limited to 'modules/core/ms_set.cpp')
-rw-r--r--modules/core/ms_set.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/ms_set.cpp b/modules/core/ms_set.cpp
index 492111389..302cf120b 100644
--- a/modules/core/ms_set.cpp
+++ b/modules/core/ms_set.cpp
@@ -163,7 +163,7 @@ class CommandMSSet : public Command
limit = p1.is_pos_number_only() ? convertTo<int32>(p1) : -1;
/* The first character is a digit, but we could still go negative
* from overflow... watch out! */
- if (limit < 0 || (Config->MSMaxMemos > 0 && convertTo<unsigned>(limit) > Config->MSMaxMemos))
+ if (limit < 0 || (Config->MSMaxMemos > 0 && static_cast<unsigned>(limit) > Config->MSMaxMemos))
{
if (!chan.empty())
u->SendMessage(MemoServ, MEMO_SET_LIMIT_TOO_HIGH, chan.c_str(), Config->MSMaxMemos);