summaryrefslogtreecommitdiff
path: root/src/database/row.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-06-14 10:31:45 +0200
committerlouiz’ <louiz@louiz.org>2017-06-14 10:46:44 +0200
commit2677ac42e8d2e1cf162fec773a9acb453bef8b9b (patch)
tree4b51bece4f4dec660e0c48297404a5da51aee4ec /src/database/row.hpp
parentdac19da4c791a6c16cde09e61841fd7f6b6268d2 (diff)
downloadbiboumi-2677ac42e8d2e1cf162fec773a9acb453bef8b9b.tar.gz
biboumi-2677ac42e8d2e1cf162fec773a9acb453bef8b9b.tar.bz2
biboumi-2677ac42e8d2e1cf162fec773a9acb453bef8b9b.tar.xz
biboumi-2677ac42e8d2e1cf162fec773a9acb453bef8b9b.zip
Fix compilation (many warnings, and a linkage error) with clang++
Diffstat (limited to 'src/database/row.hpp')
-rw-r--r--src/database/row.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/row.hpp b/src/database/row.hpp
index ca686c1..b6887cb 100644
--- a/src/database/row.hpp
+++ b/src/database/row.hpp
@@ -20,7 +20,7 @@ update_id(std::tuple<T...>& columns, sqlite3* db)
log_debug("Found an autoincrement col.");
auto res = sqlite3_last_insert_rowid(db);
log_debug("Value is now: ", res);
- column.value = res;
+ column.value = static_cast<Id::real_type>(res);
}
template <std::size_t N, typename... T>