diff --git a/discord/store.hpp b/discord/store.hpp index 791c790..6a9f316 100644 --- a/discord/store.hpp +++ b/discord/store.hpp @@ -144,7 +144,7 @@ private: template typename std::enable_if::value, int>::type Bind(int index, T val) { - return m_db->SetError(sqlite3_bind_int64(m_stmt, val, static_cast(val))); + return m_db->SetError(sqlite3_bind_int64(m_stmt, index, val)); } template