From 6aee23d646639885eb52f3b53fde4f849dfffa11 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 19 Nov 2018 02:37:55 +0100 Subject: [PATCH] Bugfix: Allow for more than 65535 minutes of inactivity. --- CMakeLists.txt | 2 +- src/account.cpp | 2 +- src/mastobotmon.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee5cd54..73a8495 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastobotmon - VERSION 0.3.12 + VERSION 0.3.13 LANGUAGES CXX) include(GNUInstallDirs) diff --git a/src/account.cpp b/src/account.cpp index f62a982..021e7f9 100644 --- a/src/account.cpp +++ b/src/account.cpp @@ -40,7 +40,7 @@ const void Account::set_minutes(uint16_t minutes) _minutes = minutes; } -const uint16_t Account::get_minutes() const +const uint64_t Account::get_minutes() const { return _minutes; } diff --git a/src/mastobotmon.hpp b/src/mastobotmon.hpp index 6a1a855..d8ac820 100644 --- a/src/mastobotmon.hpp +++ b/src/mastobotmon.hpp @@ -36,7 +36,7 @@ class Account : public Mastodon::Easy public: explicit Account(const string &instance, const string &access_token); const void set_minutes(uint16_t minutes); - const uint16_t get_minutes() const; + const uint64_t get_minutes() const; const uint16_t get_mentions(string &answer); const void set_last_mention_id(const std::uint64_t &id);