diff --git a/src/sqlite3.c b/src/sqlite3.c index 7fb290f841431817db3b44f1d83fd443b0b1c96d..6dcd909b9ac03f117b9d257d4ebd7f636a85ed2a 100644 --- a/src/sqlite3.c +++ b/src/sqlite3.c @@ -194346,7 +194346,7 @@ static int fts3tokFilterMethod( fts3tokResetCursor(pCsr); if( idxNum==1 ){ const char *zByte = (const char *)sqlite3_value_text(apVal[0]); - int nByte = sqlite3_value_bytes(apVal[0]); + sqlite3_int64 nByte = sqlite3_value_bytes(apVal[0]); pCsr->zInput = sqlite3_malloc64(nByte+1); if( pCsr->zInput==0 ){ rc = SQLITE_NOMEM;