summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/database/database.hpp8
-rw-r--r--src/database/query.hpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/database/database.hpp b/src/database/database.hpp
index 4a413be..a53f87b 100644
--- a/src/database/database.hpp
+++ b/src/database/database.hpp
@@ -63,8 +63,8 @@ class Database
struct EncodingIn: Column<std::string> { static constexpr auto name = "encodingin_"; };
- struct MaxHistoryLength: Column<int> { static constexpr auto name = "maxhistorylength_";
- MaxHistoryLength(): Column<int>(20) {} };
+ struct MaxHistoryLength: Column<std::int64_t> { static constexpr auto name = "maxhistorylength_";
+ MaxHistoryLength(): Column<std::int64_t>(20) {} };
struct RecordHistory: Column<bool> { static constexpr auto name = "recordhistory_";
RecordHistory(): Column<bool>(true) {}};
@@ -86,8 +86,8 @@ class Database
struct Address: Column<std::string> { static constexpr auto name = "address_"; };
- struct ThrottleLimit: Column<long int> { static constexpr auto name = "throttlelimit_";
- ThrottleLimit(): Column<long int>(10) {} };
+ struct ThrottleLimit: Column<std::int64_t> { static constexpr auto name = "throttlelimit_";
+ ThrottleLimit(): Column<std::int64_t>(10) {} };
using MucLogLineTable = Table<Id, Uuid, Owner, IrcChanName, IrcServerName, Date, Body, Nick>;
using MucLogLine = MucLogLineTable::RowType;
diff --git a/src/database/query.hpp b/src/database/query.hpp
index ae6e946..c89371f 100644
--- a/src/database/query.hpp
+++ b/src/database/query.hpp
@@ -18,7 +18,7 @@ void actual_bind(Statement& statement, const T& value, int index)
{
static_assert(std::is_integral<T>::value,
"Only a string, an optional-bool or an integer can be used.");
- statement.bind_int64(index, static_cast<int>(value));
+ statement.bind_int64(index, static_cast<std::int64_t>(value));
}
#ifdef DEBUG_SQL_QUERIES