Fix the real_type of ThrottleLimit

This commit is contained in:
louiz’
2018-08-04 15:11:59 +02:00
parent 9244624d56
commit 89e038bc3a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ class Database
struct Address: Column<std::string> { static constexpr auto name = "address_"; }; struct Address: Column<std::string> { static constexpr auto name = "address_"; };
struct ThrottleLimit: Column<std::size_t> { static constexpr auto name = "throttlelimit_"; struct ThrottleLimit: Column<unsigned long int> { static constexpr auto name = "throttlelimit_";
ThrottleLimit(): Column<std::size_t>(10) {} }; ThrottleLimit(): Column<std::size_t>(10) {} };
using MucLogLineTable = Table<Id, Uuid, Owner, IrcChanName, IrcServerName, Date, Body, Nick>; using MucLogLineTable = Table<Id, Uuid, Owner, IrcChanName, IrcServerName, Date, Body, Nick>;
+1 -1
View File
@@ -494,7 +494,7 @@ void ConfigureIrcServerStep2(XmppComponent& xmpp_component, AdhocSession& sessio
else if (field->get_tag("var") == "throttle_limit" && value) else if (field->get_tag("var") == "throttle_limit" && value)
{ {
options.col<Database::ThrottleLimit>() = std::stoull(value->get_inner()); options.col<Database::ThrottleLimit>() = std::stoul(value->get_inner());
Bridge* bridge = biboumi_component.find_user_bridge(session.get_owner_jid()); Bridge* bridge = biboumi_component.find_user_bridge(session.get_owner_jid());
if (bridge) if (bridge)
{ {