| Index: third_party/sqlite/src/ext/fts3/fts3_hash.c
|
| diff --git a/third_party/sqlite/src/ext/fts3/fts3_hash.c b/third_party/sqlite/src/ext/fts3/fts3_hash.c
|
| index 98be52960577a6673cf34b1cd638dce31ddb4692..1a32a537b406947c89efe383e338a651ed655936 100644
|
| --- a/third_party/sqlite/src/ext/fts3/fts3_hash.c
|
| +++ b/third_party/sqlite/src/ext/fts3/fts3_hash.c
|
| @@ -23,13 +23,13 @@
|
| ** * The FTS3 module is being built into the core of
|
| ** SQLite (in which case SQLITE_ENABLE_FTS3 is defined).
|
| */
|
| +#include "fts3Int.h"
|
| #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_FTS3)
|
|
|
| #include <assert.h>
|
| #include <stdlib.h>
|
| #include <string.h>
|
|
|
| -#include "sqlite3.h"
|
| #include "fts3_hash.h"
|
|
|
| /*
|
| @@ -96,13 +96,13 @@ void sqlite3Fts3HashClear(Fts3Hash *pH){
|
| */
|
| static int fts3StrHash(const void *pKey, int nKey){
|
| const char *z = (const char *)pKey;
|
| - int h = 0;
|
| + unsigned h = 0;
|
| if( nKey<=0 ) nKey = (int) strlen(z);
|
| while( nKey > 0 ){
|
| h = (h<<3) ^ h ^ *z++;
|
| nKey--;
|
| }
|
| - return h & 0x7fffffff;
|
| + return (int)(h & 0x7fffffff);
|
| }
|
| static int fts3StrCompare(const void *pKey1, int n1, const void *pKey2, int n2){
|
| if( n1!=n2 ) return 1;
|
|
|