forked from qt-creator/qt-creator
Fix warning in okapi_bm25.h
Change-Id: Ie7be70f37695debff636d9094c6b192cb83f4136 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
6
src/libs/3rdparty/sqlite/okapi_bm25.h
vendored
6
src/libs/3rdparty/sqlite/okapi_bm25.h
vendored
@@ -6,7 +6,7 @@
|
||||
static void okapi_bm25(sqlite3_context *pCtx, int nVal, sqlite3_value **apVal) {
|
||||
assert(sizeof(int) == 4);
|
||||
|
||||
unsigned int *matchinfo = (unsigned int *)sqlite3_value_blob(apVal[0]);
|
||||
const unsigned int *matchinfo = (const unsigned int *)sqlite3_value_blob(apVal[0]);
|
||||
int searchTextCol = sqlite3_value_int(apVal[1]);
|
||||
|
||||
double K1 = ((nVal >= 3) ? sqlite3_value_double(apVal[2]) : 1.2);
|
||||
@@ -65,7 +65,7 @@ static void okapi_bm25(sqlite3_context *pCtx, int nVal, sqlite3_value **apVal) {
|
||||
static void okapi_bm25f(sqlite3_context *pCtx, int nVal, sqlite3_value **apVal) {
|
||||
assert(sizeof(int) == 4);
|
||||
|
||||
unsigned int *matchinfo = (unsigned int *)sqlite3_value_blob(apVal[0]);
|
||||
const unsigned int *matchinfo = (const unsigned int *)sqlite3_value_blob(apVal[0]);
|
||||
|
||||
|
||||
//Setting the default values and ignoring argument based inputs so the extra
|
||||
@@ -148,7 +148,7 @@ static void okapi_bm25f(sqlite3_context *pCtx, int nVal, sqlite3_value **apVal)
|
||||
static void okapi_bm25f_kb(sqlite3_context *pCtx, int nVal, sqlite3_value **apVal) {
|
||||
assert(sizeof(int) == 4);
|
||||
|
||||
unsigned int *matchinfo = (unsigned int *)sqlite3_value_blob(apVal[0]);
|
||||
const unsigned int *matchinfo = (const unsigned int *)sqlite3_value_blob(apVal[0]);
|
||||
|
||||
|
||||
//Setting the default values and ignoring argument based inputs so the extra
|
||||
|
Reference in New Issue
Block a user