diff --git a/README.md b/README.md index 031a050..f63cc96 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ ctest . # make test This project is continuously tested under Ubuntu Linux with the gcc and clang compilers using the Travis CI community service with the above CMake building and testing procedure. -Matrix of results can be seen online: https://travis-ci.org/SRombauts/SQLiteCpp +Detailed results can be seen online: https://travis-ci.org/SRombauts/SQLiteCpp ### License diff --git a/examples/example1/main.cpp b/examples/example1/main.cpp index c5a867e..1298a81 100644 --- a/examples/example1/main.cpp +++ b/examples/example1/main.cpp @@ -291,7 +291,7 @@ int main (void) { char buffer[16*1024]; void* blob = &buffer; - size_t size = fread(blob, 1, 16*1024, fp); + int size = static_cast(fread(blob, 1, 16*1024, fp)); buffer[size] = '\0'; fclose (fp); std::cout << "blob size=" << size << " :\n"; diff --git a/src/Statement.cpp b/src/Statement.cpp index 4d193e0..47ecb55 100644 --- a/src/Statement.cpp +++ b/src/Statement.cpp @@ -66,7 +66,7 @@ void Statement::bind(const int aIndex, const double& aValue) // throw(SQLite::Ex // Bind a string value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement void Statement::bind(const int aIndex, const std::string& aValue) // throw(SQLite::Exception) { - int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(), aValue.size(), SQLITE_TRANSIENT); + int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(), static_cast(aValue.size()), SQLITE_TRANSIENT); check(ret); } @@ -120,7 +120,7 @@ void Statement::bind(const char* apName, const double& aValue) // throw(SQLite:: void Statement::bind(const char* apName, const std::string& aValue) // throw(SQLite::Exception) { int index = sqlite3_bind_parameter_index(mStmtPtr, apName); - int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(), aValue.size(), SQLITE_TRANSIENT); + int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(), static_cast(aValue.size()), SQLITE_TRANSIENT); check(ret); } @@ -269,7 +269,7 @@ Statement::Ptr::Ptr(sqlite3* apSQLite, std::string& aQuery) : mpStmt(NULL), mpRefCount(NULL) { - int ret = sqlite3_prepare_v2(apSQLite, aQuery.c_str(), aQuery.size(), &mpStmt, NULL); + int ret = sqlite3_prepare_v2(apSQLite, aQuery.c_str(), static_cast(aQuery.size()), &mpStmt, NULL); if (SQLITE_OK != ret) { throw SQLite::Exception(sqlite3_errmsg(mpSQLite));