mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
try to fix weird ambiguous int stuff
This commit is contained in:
1 parent
9175da2cf0
commit
2c2686946d
2 files changed
+5
-5
No files matched your search
+3
-3
@@ -2169,7 +2169,7 @@ int Store::Statement::Bind(int index, uint32_t num) {
|
||||
return m_db->SetError(sqlite3_bind_int(m_stmt, index, num));
|
||||
}
|
||||
|
||||
int Store::Statement::Bind(int index, uint64_t num) {
|
||||
int Store::Statement::Bind(int index, size_t num) {
|
||||
return m_db->SetError(sqlite3_bind_int64(m_stmt, index, num));
|
||||
}
|
||||
|
||||
@@ -2198,8 +2198,8 @@ void Store::Statement::Get(int index, int32_t &out) const {
|
||||
out = sqlite3_column_int(m_stmt, index);
|
||||
}
|
||||
|
||||
void Store::Statement::Get(int index, uint64_t &out) const {
|
||||
out = static_cast<uint64_t>(sqlite3_column_int64(m_stmt, index));
|
||||
void Store::Statement::Get(int index, size_t &out) const {
|
||||
out = static_cast<size_t>(sqlite3_column_int64(m_stmt, index));
|
||||
}
|
||||
|
||||
void Store::Statement::Get(int index, bool &out) const {
|
||||
|
||||
+2
-2
@@ -102,7 +102,7 @@ private:
|
||||
|
||||
int Bind(int index, int32_t num);
|
||||
int Bind(int index, uint32_t num);
|
||||
int Bind(int index, uint64_t num);
|
||||
int Bind(int index, size_t num);
|
||||
int Bind(int index, const char *str, size_t len = -1);
|
||||
int Bind(int index, const std::string &str);
|
||||
int Bind(int index, bool val);
|
||||
@@ -154,7 +154,7 @@ private:
|
||||
|
||||
void Get(int index, uint8_t &out) const;
|
||||
void Get(int index, int32_t &out) const;
|
||||
void Get(int index, uint64_t &out) const;
|
||||
void Get(int index, size_t &out) const;
|
||||
void Get(int index, bool &out) const;
|
||||
void Get(int index, Snowflake &out) const;
|
||||
void Get(int index, std::string &out) const;
|
||||
|
||||
Reference in new issue
Block a user