summaryrefslogtreecommitdiff
path: root/src/database/count_query.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/count_query.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/count_query.hpp')
-rw-r--r--src/database/count_query.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/count_query.hpp b/src/database/count_query.hpp
index 322ad1b..b7bbf51 100644
--- a/src/database/count_query.hpp
+++ b/src/database/count_query.hpp
@@ -15,10 +15,10 @@ struct CountQuery: public Query
this->body += std::move(name);
}
- std::size_t execute(sqlite3* db)
+ int64_t execute(sqlite3* db)
{
auto statement = this->prepare(db);
- std::size_t res = 0;
+ int64_t res = 0;
if (sqlite3_step(statement.get()) == SQLITE_ROW)
res = sqlite3_column_int64(statement.get(), 0);
else