mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Updates to FTS3 to correct compiler warnings under MSVC.
FossilOrigin-Name: 37495b55ffbdc2db4482367ac7d8e32d4d71d58e
This commit is contained in:
@ -78,7 +78,7 @@ static void fts3SnippetSbInit(StringBuffer *p){
|
||||
*/
|
||||
static void fts3SnippetAppend(StringBuffer *p, const char *zNew, int nNew){
|
||||
if( p->z==0 ) return;
|
||||
if( nNew<0 ) nNew = strlen(zNew);
|
||||
if( nNew<0 ) nNew = (int)strlen(zNew);
|
||||
if( p->nUsed + nNew >= p->nAlloc ){
|
||||
int nAlloc;
|
||||
char *zNew;
|
||||
@ -155,11 +155,11 @@ static int snippetAppendMatch(
|
||||
}
|
||||
i = p->nMatch++;
|
||||
pMatch = &p->aMatch[i];
|
||||
pMatch->iCol = iCol;
|
||||
pMatch->iTerm = iTerm;
|
||||
pMatch->iCol = (short)iCol;
|
||||
pMatch->iTerm = (short)iTerm;
|
||||
pMatch->iToken = iToken;
|
||||
pMatch->iStart = iStart;
|
||||
pMatch->nByte = nByte;
|
||||
pMatch->nByte = (short)nByte;
|
||||
return SQLITE_OK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user