mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Fixing warning under MSVC.
This commit is contained in:
parent
670d710f62
commit
218aca1b13
@ -232,7 +232,7 @@ void Database::loadExtension(const char* apExtensionName, const char *apEntryPoi
|
|||||||
// Set the key for the current sqlite database instance.
|
// Set the key for the current sqlite database instance.
|
||||||
void Database::key(const std::string& aKey) const
|
void Database::key(const std::string& aKey) const
|
||||||
{
|
{
|
||||||
int pass_len = aKey.length();
|
int pass_len = static_cast<int>(aKey.length());
|
||||||
#ifdef SQLITE_HAS_CODEC
|
#ifdef SQLITE_HAS_CODEC
|
||||||
if (pass_len > 0) {
|
if (pass_len > 0) {
|
||||||
const int ret = sqlite3_key(mpSQLite, aKey.c_str(), pass_len);
|
const int ret = sqlite3_key(mpSQLite, aKey.c_str(), pass_len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user