Mercurial > irccd
changeset 914:30aa34a87dd6
irccd: fix build on macOS
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 12 Jun 2020 20:05:00 +0200 |
parents | 5e25439fe98d |
children | ffb59515fde5 |
files | libirccd-daemon/irccd/daemon/transport_command.cpp |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libirccd-daemon/irccd/daemon/transport_command.cpp Mon Feb 03 20:20:00 2020 +0100 +++ b/libirccd-daemon/irccd/daemon/transport_command.cpp Fri Jun 12 20:05:00 2020 +0200 @@ -350,7 +350,7 @@ void rule_add_command::exec(bot& bot, transport_client& client, const document& args) { - const auto index = args.optional<std::size_t>("index", bot.get_rules().list().size()); + const auto index = args.optional<std::uint64_t>("index", bot.get_rules().list().size()); if (!index || *index > bot.get_rules().list().size()) throw rule_error(rule_error::error::invalid_index); @@ -381,7 +381,7 @@ } }; - const auto index = args.get<std::size_t>("index"); + const auto index = args.get<std::uint64_t>("index"); if (!index) throw rule_error(rule_error::invalid_index); @@ -425,7 +425,7 @@ void rule_info_command::exec(bot& bot, transport_client& client, const document& args) { - const auto index = args.get<std::size_t>("index"); + const auto index = args.get<std::uint64_t>("index"); if (!index) throw rule_error(rule_error::invalid_index); @@ -469,8 +469,8 @@ void rule_move_command::exec(bot& bot, transport_client& client, const document& args) { - const auto from = args.get<std::size_t>("from"); - const auto to = args.get<std::size_t>("to"); + const auto from = args.get<std::uint64_t>("from"); + const auto to = args.get<std::uint64_t>("to"); if (!from || !to) throw rule_error(rule_error::invalid_index); @@ -532,7 +532,7 @@ void rule_remove_command::exec(bot& bot, transport_client& client, const document& args) { - const auto index = args.get<std::size_t>("index"); + const auto index = args.get<std::uint64_t>("index"); if (!index || *index >= bot.get_rules().list().size()) throw rule_error(rule_error::invalid_index);