From 9bf81a2c04eddabd0f09ea9157e6e7c97bea88f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sun, 28 Jan 2018 14:10:14 +0100 Subject: This should fix the int conversion warning on 32bits arch --- src/database/row.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/database/row.hpp') diff --git a/src/database/row.hpp b/src/database/row.hpp index 130863a..4dc98be 100644 --- a/src/database/row.hpp +++ b/src/database/row.hpp @@ -42,7 +42,8 @@ struct Row if (id.value == Id::unset_value) { this->insert(*db); - std::get(this->columns).value = db->last_inserted_rowid; + if (db->last_inserted_rowid >= 0) + std::get(this->columns).value = static_cast(db->last_inserted_rowid); } else this->update(*db); -- cgit v1.2.3