From d7aa5f6a3a69c69b5ab3d2ddcdfd2f819e840703 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 11 Oct 2010 18:47:54 -0400 Subject: Fixed Windows build --- modules/core/ms_set.cpp | 2 +- modules/extra/db_mysql.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') 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(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(limit) > Config->MSMaxMemos)) + if (limit < 0 || (Config->MSMaxMemos > 0 && static_cast(limit) > Config->MSMaxMemos)) { if (!chan.empty()) u->SendMessage(MemoServ, MEMO_SET_LIMIT_TOO_HIGH, chan.c_str(), Config->MSMaxMemos); diff --git a/modules/extra/db_mysql.cpp b/modules/extra/db_mysql.cpp index 92f0d1528..f50d2630e 100644 --- a/modules/extra/db_mysql.cpp +++ b/modules/extra/db_mysql.cpp @@ -333,7 +333,7 @@ class DBMySQL : public Module { private: CommandSQLSync commandsqlsync; - MySQLInterface interface; + MySQLInterface sqlinterface; service_reference SQL; public: @@ -350,7 +350,7 @@ class DBMySQL : public Module ircdproto->SendGlobops(OperServ, "Found SQL again, going out of readonly mode..."); } - SQL->Run(&interface, query); + SQL->Run(&sqlinterface, query); } else { @@ -368,7 +368,7 @@ class DBMySQL : public Module return SQL ? SQL->Escape(query) : query; } - DBMySQL(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator), interface(this), SQL("mysql/main") + DBMySQL(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator), sqlinterface(this), SQL("mysql/main") { me = this; -- cgit