Commit e9a2996f authored by Marco Bubke's avatar Marco Bubke

Fix warning in okapi_bm25.h

Change-Id: Ie7be70f37695debff636d9094c6b192cb83f4136
Reviewed-by: Nikolai Kosjar's avatarNikolai Kosjar <nikolai.kosjar@qt.io>
parent 87c88392
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment