aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/amatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/misc/amatch.c')
-rw-r--r--ext/misc/amatch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/misc/amatch.c b/ext/misc/amatch.c
index 852491988..efe76566e 100644
--- a/ext/misc/amatch.c
+++ b/ext/misc/amatch.c
@@ -625,10 +625,10 @@ static int amatchLoadOneRule(
}else{
memset(pRule, 0, sizeof(*pRule));
pRule->zFrom = &pRule->zTo[nTo+1];
- pRule->nFrom = nFrom;
+ pRule->nFrom = (amatch_len)nFrom;
memcpy(pRule->zFrom, zFrom, nFrom+1);
memcpy(pRule->zTo, zTo, nTo+1);
- pRule->nTo = nTo;
+ pRule->nTo = (amatch_len)nTo;
pRule->rCost = rCost;
pRule->iLang = (int)iLang;
}
@@ -1081,7 +1081,7 @@ static void amatchAddWord(
pWord->rCost = rCost;
pWord->iSeq = pCur->nWord++;
amatchWriteCost(pWord);
- pWord->nMatch = nMatch;
+ pWord->nMatch = (short)nMatch;
pWord->pNext = pCur->pAllWords;
pCur->pAllWords = pWord;
pWord->sCost.zKey = pWord->zCost;
@@ -1162,7 +1162,7 @@ static int amatchNext(sqlite3_vtab_cursor *cur){
#endif
nWord = (int)strlen(pWord->zWord+2);
if( nWord+20>nBuf ){
- nBuf = nWord+100;
+ nBuf = (char)(nWord+100);
zBuf = sqlite3_realloc(zBuf, nBuf);
if( zBuf==0 ) return SQLITE_NOMEM;
}