From 2677ac42e8d2e1cf162fec773a9acb453bef8b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Wed, 14 Jun 2017 10:31:45 +0200 Subject: Fix compilation (many warnings, and a linkage error) with clang++ --- src/database/row.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/database/row.hpp') 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& 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(res); } template -- cgit v1.2.3